Skip to content

Commit

Permalink
Tighten typing annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Jan 12, 2024
1 parent 754c4f8 commit e330c03
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ addopts = --strict
python_files = test_*.py
testpaths = TEMPLATE/tests

[coverage:report]
show_missing = true
exclude_lines =
pragma: nocover
pragma: no cover
TYPE_CHECKING
except ImportError
@overload
@(abc\.)?abstractmethod

[flake8]
# https://github.com/python/black#line-length
max-line-length = 88
Expand All @@ -76,6 +86,16 @@ force_grid_wrap = 0
use_parentheses = True
line_length = 88

# mypy: Ignore non-typed libraries
[mypy-*]
ignore_missing_imports = True
[mypy]
allow_incomplete_defs = false
allow_untyped_decorators = false
allow_untyped_defs = false
ignore_missing_imports = true
no_implicit_optional = true
show_error_codes = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unreachable = true

[mypy-*.tests.*]
allow_untyped_defs = true

0 comments on commit e330c03

Please sign in to comment.