Skip to content

Commit e5d226a

Browse files
committed
# Conflicts: # pyproject.toml
2 parents 9bdc506 + f1350e4 commit e5d226a

File tree

5 files changed

+43
-11
lines changed

5 files changed

+43
-11
lines changed

.coveragerc

Lines changed: 4 additions & 2 deletions
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

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: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,11 @@ Source = "https://github.com/coherent-oss/pytest-ignore-flaky"
4242
test = [
4343
# upstream
4444
"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'",
5045

5146
# local
5247
'importlib_resources; python_version < "3.12"',
5348
]
49+
5450
doc = [
5551
# upstream
5652
"sphinx >= 3.5",
@@ -62,6 +58,27 @@ doc = [
6258
# local
6359
]
6460

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+
6582
[project.entry-points]
6683
pytest11 = {pytest_ignore_flaky = "pytest_ignore_flaky"}
6784

tox.ini

Lines changed: 4 additions & 0 deletions
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)