Skip to content

Commit 86bbade

Browse files
committed
# Conflicts: # pyproject.toml
2 parents 4e8e993 + f1350e4 commit 86bbade

File tree

5 files changed

+43
-11
lines changed

5 files changed

+43
-11
lines changed

.coveragerc

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ disable_warnings =
88
[report]
99
show_missing = True
1010
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\):
1315
if TYPE_CHECKING:

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
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

mypy.ini

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
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
511
explicit_package_bases = True
12+
13+
# Disable overload-overlap due to many false-positives
14+
disable_error_code = overload-overlap

pyproject.toml

+22-5
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,11 @@ Source = "https://github.com/jaraco/jaraco.office"
3131
test = [
3232
# upstream
3333
"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'",
3934

4035
# local
4136
'pypiwin32; platform_system == "Windows"',
4237
]
38+
4339
doc = [
4440
# upstream
4541
"sphinx >= 3.5",
@@ -51,6 +47,27 @@ doc = [
5147
# local
5248
]
5349

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+
5471
[project.scripts]
5572
doc-to-pdf = "jaraco.office.word:doc_to_pdf_cmd"
5673
doc-to-pdf-server = "jaraco.office.convert:ConvertServer.start_server"

tox.ini

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ commands =
88
usedevelop = True
99
extras =
1010
test
11+
check
12+
cover
13+
enabler
14+
type
1115

1216
[testenv:diffcov]
1317
description = run tests and check that diff from main is covered

0 commit comments

Comments
 (0)