Skip to content

Commit 0cf93b3

Browse files
committed
🔨 Add pre-commit
1 parent eef9ac4 commit 0cf93b3

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.pre-commit-config.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
default_language_version:
4+
python: python3.10
5+
repos:
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
7+
rev: v4.5.0
8+
hooks:
9+
- id: check-added-large-files
10+
- id: check-toml
11+
- id: check-yaml
12+
args:
13+
- --unsafe
14+
- id: end-of-file-fixer
15+
- id: trailing-whitespace
16+
- repo: https://github.com/astral-sh/ruff-pre-commit
17+
rev: v0.2.0
18+
hooks:
19+
- id: ruff
20+
args:
21+
- --fix
22+
- id: ruff-format
23+
ci:
24+
autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
25+
autoupdate_commit_msg: ⬆ [pre-commit.ci] pre-commit autoupdate

0 commit comments

Comments
 (0)