File tree 5 files changed +43
-11
lines changed
5 files changed +43
-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 @@ -42,15 +42,11 @@ Source = "https://github.com/coherent-oss/pytest-ignore-flaky"
42
42
test = [
43
43
# upstream
44
44
" pytest >= 6, != 8.1.*" ,
45
- " pytest-checkdocs >= 2.4" ,
46
- " pytest-cov" ,
47
- " pytest-mypy" ,
48
- " pytest-enabler >= 2.2" ,
49
- " pytest-ruff >= 0.2.1; sys_platform != 'cygwin'" ,
50
45
51
46
# local
52
47
' importlib_resources; python_version < "3.12"' ,
53
48
]
49
+
54
50
doc = [
55
51
# upstream
56
52
" sphinx >= 3.5" ,
@@ -62,6 +58,27 @@ doc = [
62
58
# local
63
59
]
64
60
61
+ check = [
62
+ " pytest-checkdocs >= 2.4" ,
63
+ " pytest-ruff >= 0.2.1; sys_platform != 'cygwin'" ,
64
+ ]
65
+
66
+ cover = [
67
+ " pytest-cov" ,
68
+ ]
69
+
70
+ enabler = [
71
+ " pytest-enabler >= 2.2" ,
72
+ ]
73
+
74
+ type = [
75
+ # upstream
76
+ " pytest-mypy" ,
77
+
78
+ # local
79
+ ]
80
+
81
+
65
82
[project .entry-points ]
66
83
pytest11 = {pytest_ignore_flaky = " pytest_ignore_flaky" }
67
84
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