Skip to content

Commit 7a323c4

Browse files
Add pre-commit config yaml and installed hook
1 parent 26b9be8 commit 7a323c4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.pre-commit-config.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
rev: v0.4.1
4+
hooks:
5+
# Performs ruff check with safe fixes
6+
- id: ruff
7+
name: ruff
8+
description: "Run 'ruff' for linting"
9+
args: ["--fix"]
10+
# Performs ruff format
11+
- id: ruff-format
12+
name: ruff-format
13+
description: "Run 'ruff format' for formatting"

0 commit comments

Comments
 (0)