Skip to content

Commit 971c1e9

Browse files
committed
2 parents 17432aa + b8c6c15 commit 971c1e9

File tree

7 files changed

+37
-25
lines changed

7 files changed

+37
-25
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: tests
22

3-
on: [push, pull_request]
3+
on:
4+
merge_group:
5+
push:
6+
branches-ignore:
7+
- gh-readonly-queue/** # Temporary merge queue-related GH-made branches
8+
pull_request:
49

510
permissions:
611
contents: read
@@ -56,7 +61,9 @@ jobs:
5661
strategy:
5762
fail-fast: false
5863
matrix:
59-
job: [diffcov, docs]
64+
job:
65+
- diffcov
66+
- docs
6067
runs-on: ubuntu-latest
6168
steps:
6269
- uses: actions/checkout@v4

.pre-commit-config.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
repos:
2-
- repo: https://github.com/psf/black
3-
rev: 22.6.0
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
rev: v0.1.8
44
hooks:
5-
- id: black
5+
- id: ruff
6+
- id: ruff-format

README.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
:target: https://github.com/astral-sh/ruff
1212
:alt: Ruff
1313

14-
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
15-
:target: https://github.com/psf/black
16-
:alt: Code style: Black
17-
1814
.. image:: https://readthedocs.org/projects/configparser/badge/?version=latest
1915
:target: https://configparser.readthedocs.io/en/latest/?badge=latest
2016

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,4 @@
22
requires = ["setuptools>=56", "setuptools_scm[toml]>=3.4.1"]
33
build-backend = "setuptools.build_meta"
44

5-
[tool.black]
6-
skip-string-normalization = true
7-
85
[tool.setuptools_scm]

pytest.ini

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,6 @@ filterwarnings=
99
# Ensure ResourceWarnings are emitted
1010
default::ResourceWarning
1111

12-
# shopkeep/pytest-black#55
13-
ignore:<class 'pytest_black.BlackItem'> is not using a cooperative constructor:pytest.PytestDeprecationWarning
14-
ignore:The \(fspath. py.path.local\) argument to BlackItem is deprecated.:pytest.PytestDeprecationWarning
15-
ignore:BlackItem is an Item subclass and should not be a collector:pytest.PytestWarning
16-
17-
# shopkeep/pytest-black#67
18-
ignore:'encoding' argument not specified::pytest_black
19-
2012
# realpython/pytest-mypy#152
2113
ignore:'encoding' argument not specified::pytest_mypy
2214

ruff.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[lint]
2+
extend-ignore = [
3+
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
4+
"W191",
5+
"E111",
6+
"E114",
7+
"E117",
8+
"D206",
9+
"D300",
10+
"Q000",
11+
"Q001",
12+
"Q002",
13+
"Q003",
14+
"COM812",
15+
"COM819",
16+
"ISC001",
17+
"ISC002",
18+
]
19+
20+
[format]
21+
# https://docs.astral.sh/ruff/settings/#format-quote-style
22+
quote-style = "preserve"

setup.cfg

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,12 @@ testing =
3636
# upstream
3737
pytest >= 6
3838
pytest-checkdocs >= 2.4
39-
pytest-black >= 0.3.7; \
40-
# workaround for jaraco/skeleton#22
41-
python_implementation != "PyPy"
4239
pytest-cov
43-
pytest-mypy >= 0.9.1; \
40+
pytest-mypy; \
4441
# workaround for jaraco/skeleton#22
4542
python_implementation != "PyPy"
4643
pytest-enabler >= 2.2
47-
pytest-ruff
44+
pytest-ruff >= 0.2.1
4845

4946
# local
5047
types-backports

0 commit comments

Comments
 (0)