mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +00:00
Turn off mypy on tests folder
This commit is contained in:
parent
23c632b37b
commit
756412d784
3 changed files with 16 additions and 7 deletions
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
4
Makefile
4
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
|
||||
|
|
|
|||
17
mypy.ini
17
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue