Skip to content

Commit 64f5855

Browse files
committed
Bump precommit and fully switch to ruff format.
1 parent 8819b30 commit 64f5855

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ exclude: '^(\.tox|ci/templates|\.bumpversion\.cfg)(/|$)'
66
# Note the order is intentional to avoid multiple passes of the hooks
77
repos:
88
- repo: https://github.com/astral-sh/ruff-pre-commit
9-
rev: v0.4.5
9+
rev: v0.6.5
1010
hooks:
1111
- id: ruff
1212
args: [--fix, --exit-non-zero-on-fix, --show-fixes, --unsafe-fixes]
1313
- id: ruff-format
1414
- repo: https://github.com/pre-commit/pre-commit-hooks
15-
rev: v4.5.0
15+
rev: v4.6.0
1616
hooks:
1717
- id: trailing-whitespace
1818
- id: end-of-file-fixer

pyproject.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ select = [
3333
"PLE", # pylint errors
3434
"PT", # flake8-pytest-style
3535
"PTH", # flake8-use-pathlib
36-
"Q", # flake8-quotes
3736
"RSE", # flake8-raise
3837
"RUF", # ruff-specific rules
3938
"S", # flake8-bandit
@@ -45,12 +44,9 @@ select = [
4544
fixture-parentheses = false
4645
mark-parentheses = false
4746

48-
[tool.ruff.lint.flake8-quotes]
49-
inline-quotes = "single"
50-
5147
[tool.ruff.lint.isort]
5248
forced-separate = ["conftest"]
5349
force-single-line = true
5450

5551
[tool.ruff.format]
56-
quote-style = "preserve"
52+
quote-style = "single"

tests/test_pytest_cov.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1692,7 +1692,7 @@ def bad_init():
16921692
monkeypatch.setattr(sys, 'stderr', buff)
16931693
monkeypatch.setitem(os.environ, 'COV_CORE_SOURCE', 'foobar')
16941694
exec(payload)
1695-
expected = "pytest-cov: Failed to setup subprocess coverage. " "Environ: {'COV_CORE_SOURCE': 'foobar'} Exception: SpecificError()\n"
1695+
expected = 'pytest-cov: Failed to setup subprocess coverage. ' "Environ: {'COV_CORE_SOURCE': 'foobar'} Exception: SpecificError()\n"
16961696
assert buff.getvalue() == expected
16971697

16981698

0 commit comments

Comments
 (0)