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 @@ -12,6 +12,8 @@ disable_warnings =
12
12
[report]
13
13
show_missing = True
14
14
exclude_also =
15
- # jaraco/skeleton#97
16
- @overload
15
+ # Exclude common false positives per
16
+ # https://coverage.readthedocs.io/en/latest/excluding.html#advanced-exclusion
17
+ # Ref jaraco/skeleton#97 and jaraco/skeleton#135
18
+ class .*\bProtocol\):
17
19
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 @@ -27,11 +27,6 @@ Source = "https://github.com/pypa/distutils"
27
27
test = [
28
28
# upstream
29
29
" pytest >= 6, != 8.1.*" ,
30
- " pytest-checkdocs >= 2.4" ,
31
- " pytest-cov" ,
32
- " pytest-mypy" ,
33
- " pytest-enabler >= 2.2" ,
34
- " pytest-ruff >= 0.2.1; sys_platform != 'cygwin'" ,
35
30
36
31
# local
37
32
" pytest >= 7.4.3" , # 186
@@ -46,6 +41,7 @@ test = [
46
41
# workaround for pytest-dev/pytest#12490
47
42
" pytest < 8.1; python_version < '3.12'" ,
48
43
]
44
+
49
45
doc = [
50
46
# upstream
51
47
" sphinx >= 3.5" ,
@@ -57,6 +53,28 @@ doc = [
57
53
# local
58
54
]
59
55
56
+ check = [
57
+ " pytest-checkdocs >= 2.4" ,
58
+ " pytest-ruff >= 0.2.1; sys_platform != 'cygwin'" ,
59
+ ]
60
+
61
+ cover = [
62
+ " pytest-cov" ,
63
+ ]
64
+
65
+ enabler = [
66
+ " pytest-enabler >= 2.2" ,
67
+ ]
68
+
69
+ type = [
70
+ # upstream
71
+ " pytest-mypy" ,
72
+
73
+ # local
74
+ ]
75
+
76
+
77
+
60
78
[tool .setuptools_scm ]
61
79
62
80
[tool .pytest-enabler .mypy ]
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ commands =
12
12
usedevelop = True
13
13
extras =
14
14
test
15
+ check
16
+ cover
17
+ enabler
18
+ type
15
19
16
20
[testenv:diffcov]
17
21
description = run tests and check that diff from main is covered
You can’t perform that action at this time.
0 commit comments