Skip to content

Commit 674492e

Browse files
committed
pre-commit: Add hooks for Python code
1 parent 8b39cf4 commit 674492e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ repos:
2626
rev: v1.0
2727
hooks:
2828
- id: clippy
29+
- repo: https://github.com/astral-sh/ruff-pre-commit
30+
rev: v0.11.6
31+
hooks:
32+
- id: ruff
33+
types_or: [python]
34+
args: [--fix]
35+
- id: ruff-format
36+
types_or: [python]
2937
- repo: https://github.com/codespell-project/codespell
3038
rev: v2.2.6
3139
hooks:

0 commit comments

Comments
 (0)