Skip to content

Commit

Permalink
Merge pull request #1065 from bluetech/typing
Browse files Browse the repository at this point in the history
Improve typing
  • Loading branch information
bluetech committed Apr 16, 2024
2 parents 5dfc590 + b78cf1c commit ecf7c1c
Show file tree
Hide file tree
Showing 24 changed files with 858 additions and 477 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Expand Up @@ -32,3 +32,4 @@ repos:
- pytest>=7.0.0
- execnet>=2.1.0
- types-psutil
- setproctitle
1 change: 1 addition & 0 deletions changelog/1057.trivial
@@ -0,0 +1 @@
The internals of pytest-xdist are now fully typed. The typing is not exposed yet.
16 changes: 4 additions & 12 deletions pyproject.toml
Expand Up @@ -137,19 +137,11 @@ lines-after-imports = 2
[tool.mypy]
mypy_path = ["src"]
files = ["src", "testing"]
# TODO: Enable this & fix errors.
# check_untyped_defs = true
disallow_any_generics = true
ignore_missing_imports = true
no_implicit_optional = true
show_error_codes = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
strict = true
warn_unreachable = true
warn_unused_configs = true
# TODO: Enable this & fix errors.
# no_implicit_reexport = true
[[tool.mypy.overrides]]
module = ["xdist._version"]
ignore_missing_imports = true


[tool.towncrier]
Expand Down

0 comments on commit ecf7c1c

Please sign in to comment.