Browse Source

mypy: enable strict mode in config file

Fabian Peter Hammerle 3 weeks ago
parent
commit
cb1ef451c3
2 changed files with 2 additions and 1 deletions
  1. 1 1
      .github/workflows/python.yml
  2. 1 0
      mypy.ini

+ 1 - 1
.github/workflows/python.yml

@@ -60,7 +60,7 @@ jobs:
     # > tests/resources/__init__.py:1:0: F0010: error while code parsing: Unable to load file tests/resources/__init__.py:
     # > [Errno 2] No such file or directory: 'tests/resources/__init__.py' (parse-error)
     - run: pipenv run pylint --disable=parse-error tests/*
-    - run: pipenv run mypy --strict "$(cat *.egg-info/top_level.txt)" tests
+    - run: pipenv run mypy "$(cat *.egg-info/top_level.txt)" tests
     # >=2.1.0 to support GITHUB_TOKEN
     # COVERALLS_REPO_TOKEN required manual configuration of secret
     # https://github.com/TheKevJames/coveralls-python/commit/f597109b62fadaf900af79d4f08a7debee5229e2

+ 1 - 0
mypy.ini

@@ -1,2 +1,3 @@
 [mypy]
+strict = True
 ignore_missing_imports = True