Skip to content

Commit b78cf1c

Browse files
committed
Improve typing
Fix #1057
1 parent 5dfc590 commit b78cf1c

24 files changed

+858
-477
lines changed

.pre-commit-config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ repos:
3232
- pytest>=7.0.0
3333
- execnet>=2.1.0
3434
- types-psutil
35+
- setproctitle

changelog/1057.trivial

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The internals of pytest-xdist are now fully typed. The typing is not exposed yet.

pyproject.toml

+4-12
Original file line numberDiff line numberDiff line change
@@ -137,19 +137,11 @@ lines-after-imports = 2
137137
[tool.mypy]
138138
mypy_path = ["src"]
139139
files = ["src", "testing"]
140-
# TODO: Enable this & fix errors.
141-
# check_untyped_defs = true
142-
disallow_any_generics = true
143-
ignore_missing_imports = true
144-
no_implicit_optional = true
145-
show_error_codes = true
146-
strict_equality = true
147-
warn_redundant_casts = true
148-
warn_return_any = true
140+
strict = true
149141
warn_unreachable = true
150-
warn_unused_configs = true
151-
# TODO: Enable this & fix errors.
152-
# no_implicit_reexport = true
142+
[[tool.mypy.overrides]]
143+
module = ["xdist._version"]
144+
ignore_missing_imports = true
153145

154146

155147
[tool.towncrier]

0 commit comments

Comments
 (0)