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/importlib-metadata/badge/?version=latest
1915 :target: https://importlib-metadata.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 @@ -7,14 +7,6 @@ filterwarnings=
77 # Ensure ResourceWarnings are emitted
88 default::ResourceWarning
99
10- # shopkeep/pytest-black#55
11- ignore:<class ' pytest_black.BlackItem' > is not using a cooperative constructor:pytest.PytestDeprecationWarning
12- ignore:The \(fspath. py.path.local\) argument to BlackItem is deprecated.:pytest.PytestDeprecationWarning
13- ignore:BlackItem is an Item subclass and should not be a collector:pytest.PytestWarning
14-
15- # shopkeep/pytest-black#67
16- ignore:' encoding' argument not specified::pytest_black
17-
1810 # realpython/pytest-mypy#152
1911 ignore:' encoding' argument not specified::pytest_mypy
2012
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 @@ -33,15 +33,12 @@ testing =
3333 # upstream
3434 pytest >= 6
3535 pytest-checkdocs >= 2.4
36- pytest-black >= 0.3.7; \
37- # workaround for jaraco/skeleton#22
38- python_implementation != " PyPy"
3936 pytest-cov
40- pytest-mypy >= 0.9.1 ; \
37+ pytest-mypy; \
4138 # workaround for jaraco/skeleton#22
4239 python_implementation != " PyPy"
4340 pytest-enabler >= 2.2
44- pytest-ruff
41+ pytest-ruff >= 0.2.1
4542
4643 # local
4744 importlib_resources>=1.3; python_version < "3.9"
You can’t perform that action at this time.
0 commit comments