Browse Source

ci: enable mypy

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

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

@@ -37,6 +37,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=missing-requirement --disable=parse-error tests/*
+    - run: pipenv run mypy ical2vdir tests
     - run: pipenv run pytest --cov=ical2vdir --cov-report=term-missing --cov-fail-under=100
     - run: pipenv run black --check .
     # >=1.9.0 to detect branch name

+ 2 - 0
mypy.ini

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