Skip to content

Commit 9c00c15

Browse files
committed
chore: use pre-commit
1 parent 064de65 commit 9c00c15

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.4.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-added-large-files
10+
args: [ "--maxkb=5000"]
11+
- repo: https://github.com/astral-sh/ruff-pre-commit
12+
rev: v0.4.1
13+
hooks:
14+
- id: ruff
15+
args: [ "--select", "I", "--fix" ]
16+
- id: ruff-format

0 commit comments

Comments
 (0)