Skip to content

Commit a5e7f87

Browse files
authored
Create .pre-commit-config.yaml
1 parent 84532c2 commit a5e7f87

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.pre-commit-config.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
repos:
2+
# auto update
3+
- repo: https://gitlab.com/vojko.pribudic.foss/pre-commit-update
4+
rev: "v0.3.3post1"
5+
hooks:
6+
- id: pre-commit-update
7+
args: [--dry-run, --all-versions]
8+
9+
# ruff
10+
- repo: https://github.com/astral-sh/ruff-pre-commit
11+
rev: "v0.5.7"
12+
hooks:
13+
# Run the linter.
14+
- id: ruff
15+
types_or: [ python, pyi, jupyter ]
16+
args: [ --fix ]
17+
# Run the formatter.
18+
- id: ruff-format
19+
types_or: [ python, pyi, jupyter ]

0 commit comments

Comments
 (0)