-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
50 lines (50 loc) · 1.33 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
repos:
# https://github.com/pre-commit/pre-commit-hooks
- repo: local
hooks:
- id: trailing-whitespace
name: trim trailing whitespace
entry: poetry run trailing-whitespace-fixer
language: system
types: [text]
stages: [commit, push, manual]
- id: end-of-file-fixer
name: fix end of files
entry: poetry run end-of-file-fixer
language: system
types: [text]
stages: [commit, push, manual]
- id: check-yaml
name: check yaml
entry: poetry run check-yaml
language: system
types: [yaml]
- id: check-json
name: check json
entry: poetry run check-json
language: system
types: [json]
exclude: "^.vscode"
- id: check-toml
name: check toml
entry: poetry run check-toml
language: system
types: [toml]
# https://github.com/commitizen-tools/commitizen
- repo: local
hooks:
- id: commitizen
name: commitizen check
entry: poetry run cz check
args: [--allow-abort, --commit-msg-file]
stages: [commit-msg]
language: system
# https://github.com/astral-sh/ruff-pre-commit
- repo: local
hooks:
- id: poe-format
name: ruff linter, ruff formatter and mypy
entry: poetry run poe format
language: system
pass_filenames: false
types: [python]