File tree Expand file tree Collapse file tree 3 files changed +11
-21
lines changed
Expand file tree Collapse file tree 3 files changed +11
-21
lines changed Original file line number Diff line number Diff line change 2525 env :
2626 - lint
2727 - format
28- - mypy
28+ - types
2929 - package
3030 - license
3131 steps :
Original file line number Diff line number Diff line change @@ -58,19 +58,6 @@ exclude_also = ["if __name__ == .__main__.:"]
5858show_missing = true
5959skip_covered = true
6060
61- [tool .mypy ]
62- exclude = [
63- " tests/" ,
64- " tests\\ .py$" ,
65- " test_.*\\ .py$" ,
66- " .*_tests\\ .py$" ,
67- ]
68- ignore_missing_imports = true
69- pretty = true
70- warn_redundant_casts = true
71- warn_unreachable = true
72- warn_unused_ignores = true
73-
7461[tool .pytest .ini_options ]
7562addopts = " --color=yes --doctest-modules --junitxml=tests/junit-report.xml --verbose"
7663
Original file line number Diff line number Diff line change 88envlist =
99 lint
1010 format
11+ types
1112 license
12- mypy
1313 py3{9,10,11,12,13,14}
1414 pypy3{9,10,11}
1515 package
@@ -59,12 +59,6 @@ skip_install = true
5959deps = ruff
6060commands = ruff check {posargs:.}
6161
62- [testenv:mypy]
63- description = Perform static type checking
64- skip_install = true
65- deps = mypy
66- commands = mypy {posargs:.}
67-
6862[testenv:package]
6963description = Build package and check metadata (or upload package)
7064skip_install = true
@@ -78,3 +72,12 @@ passenv =
7872 TWINE_USERNAME
7973 TWINE_PASSWORD
8074 TWINE_REPOSITORY_URL
75+
76+ [testenv:types]
77+ description = Perform static type checking
78+ skip_install = true
79+ deps =
80+ cli-test-helpers
81+ pytest
82+ ty
83+ commands = ty check {posargs}
You can’t perform that action at this time.
0 commit comments