Skip to content

Commit de14dd8

Browse files
committed
pre-commit: Switch to ruff
Signed-off-by: Stephen Finucane <[email protected]>
1 parent b4a21c0 commit de14dd8

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.pre-commit-config.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@ repos:
2020
exclude: (.*\.mbox)|(.*\.svg)|(.*\.sql)|(.*\.conf)
2121
- id: remove-crlf
2222
exclude: (.*\.mbox)|(.*\.svg)
23-
- repo: https://github.com/pycqa/flake8
24-
rev: 7.0.0
23+
- repo: https://github.com/astral-sh/ruff-pre-commit
24+
# Ruff version.
25+
rev: v0.1.13
2526
hooks:
26-
- id: flake8
27+
# Run the linter.
28+
- id: ruff
29+
# Run the formatter.
30+
- id: ruff-format
2731
- repo: https://github.com/openstack/bashate
2832
rev: 2.1.1
2933
hooks:
@@ -33,7 +37,3 @@ repos:
3337
hooks:
3438
- id: vacuum
3539
files: ^docs/api/schemas/(latest|v\d\.\d)/patchwork.yaml
36-
- repo: https://github.com/psf/black
37-
rev: 23.12.1
38-
hooks:
39-
- id: black

pyproject.toml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
[tool.black]
1+
[tool.ruff]
22
line-length = 79
3-
skip-string-normalization = true
3+
4+
[tool.ruff.format]
5+
quote-style = "single"

0 commit comments

Comments
 (0)