Skip to content

Commit d2ec047

Browse files
committed
Replace flake8 with ruff. Fixes jaraco/skeleton#79 and sheds debt.
1 parent 5957d58 commit d2ec047

File tree

4 files changed

+4
-25
lines changed

4 files changed

+4
-25
lines changed

.flake8

Lines changed: 0 additions & 9 deletions
This file was deleted.

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ addopts = "--black"
1313
[tool.pytest-enabler.mypy]
1414
addopts = "--mypy"
1515

16-
[tool.pytest-enabler.flake8]
17-
addopts = "--flake8"
18-
1916
[tool.pytest-enabler.cov]
2017
addopts = "--cov"
18+
19+
[tool.pytest-enabler.ruff]
20+
addopts = "--ruff"

pytest.ini

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,11 @@ filterwarnings=
77
# Ensure ResourceWarnings are emitted
88
default::ResourceWarning
99

10-
# Suppress deprecation warning in flake8
11-
ignore:SelectableGroups dict interface is deprecated::flake8
12-
1310
# shopkeep/pytest-black#55
1411
ignore:<class 'pytest_black.BlackItem'> is not using a cooperative constructor:pytest.PytestDeprecationWarning
1512
ignore:The \(fspath. py.path.local\) argument to BlackItem is deprecated.:pytest.PytestDeprecationWarning
1613
ignore:BlackItem is an Item subclass and should not be a collector:pytest.PytestWarning
1714

18-
# tholo/pytest-flake8#83
19-
ignore:<class 'pytest_flake8.Flake8Item'> is not using a cooperative constructor:pytest.PytestDeprecationWarning
20-
ignore:The \(fspath. py.path.local\) argument to Flake8Item is deprecated.:pytest.PytestDeprecationWarning
21-
ignore:Flake8Item is an Item subclass and should not be a collector:pytest.PytestWarning
22-
2315
# shopkeep/pytest-black#67
2416
ignore:'encoding' argument not specified::pytest_black
2517

setup.cfg

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ testing =
3030
# upstream
3131
pytest >= 6
3232
pytest-checkdocs >= 2.4
33-
pytest-flake8; \
34-
# workaround for tholo/pytest-flake8#87
35-
python_version < "3.12"
36-
# workaround for tholo/pytest-flake8#87
37-
flake8 < 5
3833
pytest-black >= 0.3.7; \
3934
# workaround for jaraco/skeleton#22
4035
python_implementation != "PyPy"
@@ -43,6 +38,7 @@ testing =
4338
# workaround for jaraco/skeleton#22
4439
python_implementation != "PyPy"
4540
pytest-enabler >= 1.3
41+
pytest-ruff
4642

4743
# local
4844

0 commit comments

Comments
 (0)