Skip to content

Commit b69d15b

Browse files
committed
chore: enable strict mypy configuration and mark package as typed
1 parent 9f7a62e commit b69d15b

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

mocket/py.typed

Whitespace-only changes.

pyproject.toml

+3-18
Original file line numberDiff line numberDiff line change
@@ -117,24 +117,9 @@ max-complexity = 8
117117

118118
[tool.mypy]
119119
python_version = "3.8"
120-
files = [
121-
"mocket/core/compat.py",
122-
"mocket/core/exceptions.py",
123-
"mocket/core/utils.py",
124-
# "tests/"
125-
]
126120
strict = true
127-
warn_unused_configs = true
128-
ignore_missing_imports = true
129-
warn_redundant_casts = true
130-
warn_unused_ignores = true
131-
show_error_codes = true
132-
implicit_reexport = true
133-
disallow_any_generics = false
134-
follow_imports = "silent" # enable this once majority is typed
135-
enable_error_code = ['ignore-without-code']
136-
disable_error_code = ["no-untyped-def"] # enable this once full type-coverage is reached
121+
exclude = ["tests"]
137122

138123
[[tool.mypy.overrides]]
139-
module = "tests.*"
140-
disable_error_code = ['type-arg', 'no-untyped-def']
124+
module = "pook.*"
125+
ignore_missing_imports = true

0 commit comments

Comments
 (0)