Skip to content

Commit 86e54c0

Browse files
committed
Add ruff to pre-commit
1 parent 8b7a41e commit 86e54c0

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,12 @@ repos:
44
hooks:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
7-
# - repo: https://github.com/astral-sh/ruff-pre-commit
8-
# # Ruff version.
9-
# rev: v0.9.0
10-
# hooks:
11-
# # Run the linter.
12-
# - id: ruff
13-
# args: [ --fix ]
14-
# # Run the formatter.
15-
# - id: ruff-format
16-
#- repo: https://github.com/pre-commit/mirrors-clang-format
17-
# rev: v15.0.7
18-
# hooks:
19-
# - id: clang-format
20-
# args: ["--sort-includes=false"]
7+
- repo: https://github.com/astral-sh/ruff-pre-commit
8+
# Ruff version.
9+
rev: v0.9.0
10+
hooks:
11+
# Run the linter.
12+
- id: ruff
13+
args: [ --fix ]
14+
# Run the formatter.
15+
- id: ruff-format

0 commit comments

Comments
 (0)