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 @@ -31,15 +31,11 @@ Source = "https://github.com/jaraco/jaraco.office"
31
31
test = [
32
32
# upstream
33
33
" pytest >= 6, != 8.1.*" ,
34
- " pytest-checkdocs >= 2.4" ,
35
- " pytest-cov" ,
36
- " pytest-mypy" ,
37
- " pytest-enabler >= 2.2" ,
38
- " pytest-ruff >= 0.2.1; sys_platform != 'cygwin'" ,
39
34
40
35
# local
41
36
' pypiwin32; platform_system == "Windows"' ,
42
37
]
38
+
43
39
doc = [
44
40
# upstream
45
41
" sphinx >= 3.5" ,
@@ -51,6 +47,27 @@ doc = [
51
47
# local
52
48
]
53
49
50
+ check = [
51
+ " pytest-checkdocs >= 2.4" ,
52
+ " pytest-ruff >= 0.2.1; sys_platform != 'cygwin'" ,
53
+ ]
54
+
55
+ cover = [
56
+ " pytest-cov" ,
57
+ ]
58
+
59
+ enabler = [
60
+ " pytest-enabler >= 2.2" ,
61
+ ]
62
+
63
+ type = [
64
+ # upstream
65
+ " pytest-mypy" ,
66
+
67
+ # local
68
+ ]
69
+
70
+
54
71
[project .scripts ]
55
72
doc-to-pdf = " jaraco.office.word:doc_to_pdf_cmd"
56
73
doc-to-pdf-server = " jaraco.office.convert:ConvertServer.start_server"
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