Turn off mypy on tests folder

This commit is contained in:
Boger 2020-03-25 16:19:48 +03:00
parent 23c632b37b
commit 756412d784
3 changed files with 16 additions and 7 deletions

View file

@ -38,7 +38,7 @@ jobs:
- name: Lint code
run: |
poetry run flake8 aiogram test
poetry run mypy aiogram tests
poetry run mypy aiogram
- name: Run tests
run: |

View file

@ -86,11 +86,11 @@ flake8-report:
.PHONY: mypy
mypy:
$(py) mypy aiogram tests
$(py) mypy aiogram
.PHONY: mypy-report
mypy-report:
$(py) mypy aiogram tests --html-report $(reports_dir)/typechecking
$(py) mypy aiogram --html-report $(reports_dir)/typechecking
.PHONY: lint
lint: isort black flake8 mypy

View file

@ -1,6 +1,10 @@
[mypy]
;plugins = pydantic.mypy
;python_version = 3.8
python_version = 3.7
show_error_codes = True
show_error_context = True
pretty = True
ignore_missing_imports = False
warn_unused_configs = True
disallow_subclassing_any = True
disallow_any_generics = True
@ -16,7 +20,12 @@ warn_return_any = True
follow_imports_for_stubs = True
namespace_packages = True
show_absolute_path = True
[mypy-aiofiles]
ignore_missing_imports = True
[mypy-async_lru]
ignore_missing_imports = True
[mypy-uvloop]
ignore_missing_imports = True
show_error_context = True
show_error_codes = True
pretty = True