Skip to content

Commit c56cfbc

Browse files
Add ruff format pre-commit hook
1 parent 07f3020 commit c56cfbc

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ repos:
77
- id: mixed-line-ending
88
- id: end-of-file-fixer
99
exclude: &exclude_pattern '^changelog.d/'
10-
- repo: https://github.com/psf/black
11-
rev: 25.1.0
12-
hooks:
13-
- id: black
1410
- repo: https://github.com/astral-sh/ruff-pre-commit
15-
rev: v0.11.8
11+
rev: v0.11.9
1612
hooks:
17-
- id: ruff
13+
# Run the linter
14+
- id: ruff
15+
name: "Ruff linting"
16+
# Run the formatter
17+
- id: ruff-format
18+
name: "Ruff formatting"

0 commit comments

Comments
 (0)