File tree Expand file tree Collapse file tree 5 files changed +44
-11
lines changed
Expand file tree Collapse file tree 5 files changed +44
-11
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ disable_warnings =
1414[report]
1515show_missing = True
1616exclude_also =
17- # jaraco/skeleton#97
18- @overload
17+ # Exclude common false positives per
18+ # https://coverage.readthedocs.io/en/latest/excluding.html#advanced-exclusion
19+ # Ref jaraco/skeleton#97 and jaraco/skeleton#135
20+ class .*\bProtocol\):
1921 if TYPE_CHECKING:
Original file line number Diff line number Diff line change 11repos :
22- repo : https://github.com/astral-sh/ruff-pre-commit
3- rev : v0.1.8
3+ rev : v0.5.6
44 hooks :
55 - id : ruff
66 - id : ruff-format
Original file line number Diff line number Diff line change 11[mypy]
2- ignore_missing_imports = True
3- # required to support namespace packages
4- # https://github.com/python/mypy/issues/14057
2+ # Is the project well-typed?
3+ strict = False
4+
5+ # Early opt-in even when strict = False
6+ warn_unused_ignores = True
7+ warn_redundant_casts = True
8+ enable_error_code = ignore-without-code
9+
10+ # Support namespace packages per https://github.com/python/mypy/issues/14057
511explicit_package_bases = True
12+
13+ # Disable overload-overlap due to many false-positives
14+ disable_error_code = overload-overlap
Original file line number Diff line number Diff line change @@ -30,11 +30,6 @@ Source = "https://github.com/python/importlib_metadata"
3030test = [
3131 # upstream
3232 " pytest >= 6, != 8.1.*" ,
33- " pytest-checkdocs >= 2.4" ,
34- " pytest-cov" ,
35- " pytest-mypy" ,
36- " pytest-enabler >= 2.2" ,
37- " pytest-ruff >= 0.2.1; sys_platform != 'cygwin'" ,
3833
3934 # local
4035 ' importlib_resources>=1.3; python_version < "3.9"' ,
@@ -44,6 +39,7 @@ test = [
4439 " pytest-perf >= 0.9.2" ,
4540 " jaraco.test >= 5.4" ,
4641]
42+
4743doc = [
4844 # upstream
4945 " sphinx >= 3.5" ,
@@ -59,4 +55,26 @@ doc = [
5955]
6056perf = [" ipython" ]
6157
58+ check = [
59+ " pytest-checkdocs >= 2.4" ,
60+ " pytest-ruff >= 0.2.1; sys_platform != 'cygwin'" ,
61+ ]
62+
63+ cover = [
64+ " pytest-cov" ,
65+ ]
66+
67+ enabler = [
68+ " pytest-enabler >= 2.2" ,
69+ ]
70+
71+ type = [
72+ # upstream
73+ " pytest-mypy" ,
74+
75+ # local
76+ ]
77+
78+
79+
6280[tool .setuptools_scm ]
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ passenv =
1010usedevelop = True
1111extras =
1212 test
13+ check
14+ cover
15+ enabler
16+ type
1317
1418[testenv:diffcov]
1519description = run tests and check that diff from main is covered
You can’t perform that action at this time.
0 commit comments