Skip to content

Commit

Permalink
chore: enable strict mypy configuration and mark package as typed
Browse files Browse the repository at this point in the history
  • Loading branch information
betaboon committed Dec 3, 2024
1 parent 9f7a62e commit 3dbbc4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
Empty file added mocket/py.typed
Empty file.
22 changes: 4 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,24 +117,10 @@ max-complexity = 8

[tool.mypy]
python_version = "3.8"
files = [
"mocket/core/compat.py",
"mocket/core/exceptions.py",
"mocket/core/utils.py",
# "tests/"
]
strict = true
warn_unused_configs = true
ignore_missing_imports = true
warn_redundant_casts = true
warn_unused_ignores = true
show_error_codes = true
implicit_reexport = true
disallow_any_generics = false
follow_imports = "silent" # enable this once majority is typed
enable_error_code = ['ignore-without-code']
disable_error_code = ["no-untyped-def"] # enable this once full type-coverage is reached
files = ["mocket"]
exclude = ["tests"]

[[tool.mypy.overrides]]
module = "tests.*"
disable_error_code = ['type-arg', 'no-untyped-def']
module = "pook.*"
ignore_missing_imports = true

0 comments on commit 3dbbc4d

Please sign in to comment.