Skip to content

Commit 4a47a34

Browse files
committed
Add pre-commit-config
1 parent 1255c5d commit 4a47a34

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+
# enable pre-commit.ci at https://pre-commit.ci/
2+
# it adds:
3+
# 1. auto fixing pull requests
4+
# 2. auto updating the pre-commit configuration
5+
ci:
6+
autoupdate_schedule: monthly
7+
autofix_commit_msg: "style(pre-commit.ci): auto fixes [...]"
8+
autoupdate_commit_msg: "ci(pre-commit.ci): autoupdate"
9+
10+
repos:
11+
- repo: https://github.com/abravalheri/validate-pyproject
12+
rev: v0.15
13+
hooks:
14+
- id: validate-pyproject
15+
16+
- repo: https://github.com/charliermarsh/ruff-pre-commit
17+
rev: v0.1.3
18+
hooks:
19+
- id: ruff
20+
args: [--fix]
21+
22+
- repo: https://github.com/psf/black
23+
rev: 23.10.1
24+
hooks:
25+
- id: black

0 commit comments

Comments
 (0)