File tree Expand file tree Collapse file tree 7 files changed +37
-25
lines changed Expand file tree Collapse file tree 7 files changed +37
-25
lines changed Original file line number Diff line number Diff line change 11name : 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
510permissions :
611 contents : read
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
Original file line number Diff line number Diff line change 11repos :
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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 22requires = [" setuptools>=56" , " setuptools_scm[toml]>=3.4.1" ]
33build-backend = " setuptools.build_meta"
44
5- [tool .black ]
6- skip-string-normalization = true
7-
85[tool .setuptools_scm ]
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments