Daniel Kantor
commited on
Commit
·
39651ed
1
Parent(s):
d816011
add ruff in pre-commit
Browse files- .pre-commit-config.yaml +9 -4
.pre-commit-config.yaml
CHANGED
@@ -5,7 +5,12 @@ repos:
|
|
5 |
- id: check-yaml
|
6 |
- id: end-of-file-fixer
|
7 |
- id: trailing-whitespace
|
8 |
-
-
|
9 |
-
|
10 |
-
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
5 |
- id: check-yaml
|
6 |
- id: end-of-file-fixer
|
7 |
- id: trailing-whitespace
|
8 |
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
9 |
+
# Ruff version.
|
10 |
+
rev: v0.9.9
|
11 |
+
hooks:
|
12 |
+
# Run the linter.
|
13 |
+
- id: ruff
|
14 |
+
args: [ --fix ]
|
15 |
+
# Run the formatter.
|
16 |
+
- id: ruff-format
|