File tree 5 files changed +44
-11
lines changed
5 files changed +44
-11
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ disable_warnings =
8
8
[report]
9
9
show_missing = True
10
10
exclude_also =
11
- # jaraco/skeleton#97
12
- @overload
11
+ # Exclude common false positives per
12
+ # https://coverage.readthedocs.io/en/latest/excluding.html#advanced-exclusion
13
+ # Ref jaraco/skeleton#97 and jaraco/skeleton#135
14
+ class .*\bProtocol\):
13
15
if TYPE_CHECKING:
Original file line number Diff line number Diff line change 1
1
repos :
2
2
- repo : https://github.com/astral-sh/ruff-pre-commit
3
- rev : v0.1.8
3
+ rev : v0.5.6
4
4
hooks :
5
5
- id : ruff
6
6
- id : ruff-format
Original file line number Diff line number Diff line change 1
1
[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
5
11
explicit_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 @@ -33,17 +33,13 @@ Source = "https://github.com/jaraco/jaraco.fabric"
33
33
test = [
34
34
# upstream
35
35
" pytest >= 6, != 8.1.*" ,
36
- " pytest-checkdocs >= 2.4" ,
37
- " pytest-cov" ,
38
- " pytest-mypy" ,
39
- " pytest-enabler >= 2.2" ,
40
- " pytest-ruff >= 0.2.1; sys_platform != 'cygwin'" ,
41
36
42
37
# local
43
38
" fabric" ,
44
39
" types-setuptools" ,
45
40
" types-pyyaml" ,
46
41
]
42
+
47
43
doc = [
48
44
# upstream
49
45
" sphinx >= 3.5" ,
@@ -55,4 +51,26 @@ doc = [
55
51
# local
56
52
]
57
53
54
+ check = [
55
+ " pytest-checkdocs >= 2.4" ,
56
+ " pytest-ruff >= 0.2.1; sys_platform != 'cygwin'" ,
57
+ ]
58
+
59
+ cover = [
60
+ " pytest-cov" ,
61
+ ]
62
+
63
+ enabler = [
64
+ " pytest-enabler >= 2.2" ,
65
+ ]
66
+
67
+ type = [
68
+ # upstream
69
+ " pytest-mypy" ,
70
+
71
+ # local
72
+ ]
73
+
74
+
75
+
58
76
[tool .setuptools_scm ]
Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ commands =
8
8
usedevelop = True
9
9
extras =
10
10
test
11
+ check
12
+ cover
13
+ enabler
14
+ type
11
15
12
16
[testenv:diffcov]
13
17
description = run tests and check that diff from main is covered
You can’t perform that action at this time.
0 commit comments