Skip to content

Commit

Permalink
MYPY: Exclude tests and local.py files
Browse files Browse the repository at this point in the history
  • Loading branch information
IncrePrior committed Jul 27, 2022
1 parent 4fb3038 commit 19fe87a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions {{cookiecutter.repo_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ exclude = '''
| build
| dist
| docs
| cover
)/
| local.py
| local_test.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ignore-paths:
ignore-patterns:
- migrations/
- htmlcov/
- cover/

pycodestyle:
enable:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ warn_redundant_casts = True
warn_unused_configs = True
warn_unreachable = True
warn_no_return = True
exclude = (?x)(
local\.py$
| local_test\.py$
| test_(.+)
| tests\.py
| tests
)

plugins =
mypy_django_plugin.main,
Expand Down

0 comments on commit 19fe87a

Please sign in to comment.