Skip to content

Commit 164f276

Browse files
committed
2 parents 30b7331 + f1350e4 commit 164f276

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
@@ -12,6 +12,8 @@ disable_warnings =
1212
[report]
1313
show_missing = True
1414
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\):
1719
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
@@ -27,11 +27,6 @@ Source = "https://github.com/pypa/distutils"
2727
test = [
2828
# upstream
2929
"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'",
3530

3631
# local
3732
"pytest >= 7.4.3", # 186
@@ -46,6 +41,7 @@ test = [
4641
# workaround for pytest-dev/pytest#12490
4742
"pytest < 8.1; python_version < '3.12'",
4843
]
44+
4945
doc = [
5046
# upstream
5147
"sphinx >= 3.5",
@@ -57,6 +53,28 @@ doc = [
5753
# local
5854
]
5955

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+
6078
[tool.setuptools_scm]
6179

6280
[tool.pytest-enabler.mypy]

tox.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ commands =
1212
usedevelop = True
1313
extras =
1414
test
15+
check
16+
cover
17+
enabler
18+
type
1519

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

0 commit comments

Comments
 (0)