Skip to content

Commit

Permalink
Enable some stricter typing rules (#679)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstansby authored Jan 17, 2025
1 parent 30155c7 commit ee9a110
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion numcodecs/checksum32.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

_crc32c: Optional[ModuleType] = None
with suppress(ImportError):
import crc32c as _crc32c # type: ignore[no-redef]
import crc32c as _crc32c # type: ignore[no-redef, unused-ignore]

if TYPE_CHECKING: # pragma: no cover
from typing_extensions import Buffer
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -237,3 +237,6 @@ enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
# TODO: set options below to true
strict = false
warn_unreachable = false
warn_redundant_casts = true
warn_unused_ignores = true
warn_unused_configs = true

0 comments on commit ee9a110

Please sign in to comment.