From 756412d784cd0c94e32051cd3edb2f9476c00b40 Mon Sep 17 00:00:00 2001 From: Boger Date: Wed, 25 Mar 2020 16:19:48 +0300 Subject: [PATCH] Turn off mypy on tests folder --- .github/workflows/tests.yml | 2 +- Makefile | 4 ++-- mypy.ini | 17 +++++++++++++---- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6c030f5d..8710add4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: | diff --git a/Makefile b/Makefile index d4007f91..1a4696e2 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/mypy.ini b/mypy.ini index 7cbf0ca4..afe61218 100644 --- a/mypy.ini +++ b/mypy.ini @@ -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