Skip to content

Commit b254784

Browse files
committed
2 parents 56b61b3 + f1350e4 commit b254784

File tree

5 files changed

+44
-11
lines changed

5 files changed

+44
-11
lines changed

.coveragerc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ disable_warnings =
1414
[report]
1515
show_missing = True
1616
exclude_also =
17-
# jaraco/skeleton#97
18-
@overload
17+
# Exclude common false positives per
18+
# https://coverage.readthedocs.io/en/latest/excluding.html#advanced-exclusion
19+
# Ref jaraco/skeleton#97 and jaraco/skeleton#135
20+
class .*\bProtocol\):
1921
if TYPE_CHECKING:

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
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

Lines changed: 12 additions & 3 deletions
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

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ Source = "https://github.com/python/importlib_metadata"
3030
test = [
3131
# upstream
3232
"pytest >= 6, != 8.1.*",
33-
"pytest-checkdocs >= 2.4",
34-
"pytest-cov",
35-
"pytest-mypy",
36-
"pytest-enabler >= 2.2",
37-
"pytest-ruff >= 0.2.1; sys_platform != 'cygwin'",
3833

3934
# local
4035
'importlib_resources>=1.3; python_version < "3.9"',
@@ -44,6 +39,7 @@ test = [
4439
"pytest-perf >= 0.9.2",
4540
"jaraco.test >= 5.4",
4641
]
42+
4743
doc = [
4844
# upstream
4945
"sphinx >= 3.5",
@@ -59,4 +55,26 @@ doc = [
5955
]
6056
perf = ["ipython"]
6157

58+
check = [
59+
"pytest-checkdocs >= 2.4",
60+
"pytest-ruff >= 0.2.1; sys_platform != 'cygwin'",
61+
]
62+
63+
cover = [
64+
"pytest-cov",
65+
]
66+
67+
enabler = [
68+
"pytest-enabler >= 2.2",
69+
]
70+
71+
type = [
72+
# upstream
73+
"pytest-mypy",
74+
75+
# local
76+
]
77+
78+
79+
6280
[tool.setuptools_scm]

tox.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ passenv =
1010
usedevelop = True
1111
extras =
1212
test
13+
check
14+
cover
15+
enabler
16+
type
1317

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

0 commit comments

Comments
 (0)