Skip to content

Commit db385b7

Browse files
committed
Add pre-commit
1 parent 38c7299 commit db385b7

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.pre-commit-config.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
repos:
2+
- repo: https://github.com/MarcoGorelli/absolufy-imports
3+
rev: v0.3.1
4+
hooks:
5+
- id: absolufy-imports
6+
- repo: https://github.com/hadialqattan/pycln
7+
rev: v2.5.0
8+
hooks:
9+
- id: pycln
10+
- repo: https://github.com/psf/black-pre-commit-mirror
11+
rev: 25.1.0
12+
hooks:
13+
- id: black
14+
pass_filenames: true
15+
- repo: https://github.com/astral-sh/ruff-pre-commit
16+
rev: v0.9.4
17+
hooks:
18+
- id: ruff
19+
- repo: https://github.com/seddonym/import-linter
20+
rev: v2.1
21+
hooks:
22+
- id: import-linter
23+
stages: [manual]
24+
- repo: https://github.com/python-jsonschema/check-jsonschema
25+
rev: 0.31.1
26+
hooks:
27+
- id: check-github-workflows
28+
- repo: https://github.com/psf/black
29+
rev: 3702ba224ecffbcec30af640c149f231d90aebdb # frozen: 24.4.2
30+
hooks:
31+
- id: black
32+
33+
- repo: https://github.com/pre-commit/mirrors-prettier
34+
rev: ffb6a759a979008c0e6dff86e39f4745a2d9eac4 # frozen: v3.1.0
35+
hooks:
36+
- id: prettier
37+
files: \.(css|html|md|yml|yaml)
38+
args: [--prose-wrap=preserve]
39+
exclude: ^{{cookiecutter.__translations_repo_name}}/
40+
41+
- repo: https://github.com/asottile/pyupgrade
42+
rev: 32151ac97cbfd7f9dcd22e49516fb32266db45b4 # frozen: v3.16.0
43+
hooks:
44+
- id: pyupgrade
45+
args: [--py38-plus]
46+
47+
ci:
48+
autoupdate_schedule: monthly

0 commit comments

Comments
 (0)