Skip to content

Commit fca6d74

Browse files
committed
# Conflicts: # .flake8 # pyproject.toml # setup.cfg
2 parents b010f52 + d2ec047 commit fca6d74

File tree

6 files changed

+10
-35
lines changed

6 files changed

+10
-35
lines changed

Diff for: .flake8

-16
This file was deleted.

Diff for: .github/workflows/main.yml

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ concurrency:
99
${{ github.event.pull_request.number || github.sha }}
1010
cancel-in-progress: true
1111

12+
permissions:
13+
contents: read
14+
1215
env:
1316
# Environment variables to support color support (jaraco/skeleton#66):
1417
# Request colored output from CLI tools supporting it. Different tools
@@ -228,6 +231,8 @@ jobs:
228231
run: tox -e integration
229232

230233
release:
234+
permissions:
235+
contents: write
231236
needs:
232237
- check
233238
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')

Diff for: LICENSE

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
Copyright Jason R. Coombs
2-
31
Permission is hereby granted, free of charge, to any person obtaining a copy
42
of this software and associated documentation files (the "Software"), to
53
deal in the Software without restriction, including without limitation the

Diff for: pyproject.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ skip-string-normalization = true
1414
[tool.pytest-enabler.mypy]
1515
#addopts = "--mypy"
1616

17-
[tool.pytest-enabler.flake8]
18-
addopts = "--flake8"
19-
2017
[tool.pytest-enabler.cov]
2118
addopts = "--cov"
2219

20+
[tool.pytest-enabler.ruff]
21+
addopts = "--ruff"
22+
2323
[tool.pytest-enabler.xdist]
2424
addopts = "-n auto"
2525

Diff for: pytest.ini

-8
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,11 @@ filterwarnings=
1414
# Ensure ResourceWarnings are emitted
1515
default::ResourceWarning
1616

17-
# Suppress deprecation warning in flake8
18-
ignore:SelectableGroups dict interface is deprecated::flake8
19-
2017
# shopkeep/pytest-black#55
2118
ignore:<class 'pytest_black.BlackItem'> is not using a cooperative constructor:pytest.PytestDeprecationWarning
2219
ignore:The \(fspath. py.path.local\) argument to BlackItem is deprecated.:pytest.PytestDeprecationWarning
2320
ignore:BlackItem is an Item subclass and should not be a collector:pytest.PytestWarning
2421

25-
# tholo/pytest-flake8#83
26-
ignore:<class 'pytest_flake8.Flake8Item'> is not using a cooperative constructor:pytest.PytestDeprecationWarning
27-
ignore:The \(fspath. py.path.local\) argument to Flake8Item is deprecated.:pytest.PytestDeprecationWarning
28-
ignore:Flake8Item is an Item subclass and should not be a collector:pytest.PytestWarning
29-
3022
# shopkeep/pytest-black#67
3123
ignore:'encoding' argument not specified::pytest_black
3224

Diff for: setup.cfg

+2-6
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@ testing =
4343
# upstream
4444
pytest >= 6
4545
pytest-checkdocs >= 2.4
46-
pytest-flake8; \
47-
# workaround for tholo/pytest-flake8#87
48-
python_version < "3.12"
49-
# workaround for tholo/pytest-flake8#87
50-
flake8 < 5
5146
pytest-black >= 0.3.7; \
5247
# workaround for jaraco/skeleton#22
5348
python_implementation != "PyPy"
@@ -58,7 +53,7 @@ testing =
5853
# workaround for jaraco/skeleton#22
5954
python_implementation != "PyPy"
6055
pytest-enabler >= 1.3
61-
pytest-perf
56+
pytest-ruff
6257

6358
# local
6459
flake8-2020
@@ -74,6 +69,7 @@ testing =
7469
ini2toml[lite]>=0.9
7570
tomli-w>=1.0.0
7671
pytest-timeout
72+
pytest-perf
7773

7874
testing-integration =
7975
pytest

0 commit comments

Comments
 (0)