-
Notifications
You must be signed in to change notification settings - Fork 7
/
.pre-commit-config.yaml
50 lines (45 loc) · 1.3 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:
- repo: local
hooks:
- id: low-case-only
name: Check for lowercase only
entry: filenames must be lower-case or lower_case only
language: fail
files: '[^a-z0-9._/-]'
types: [python,sh]
- repo: https://github.com/crate-ci/typos
rev: v1.16.18
hooks:
- id: typos
# args: [--write-changes, --force-exclude]
args: [--force-exclude]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
stages: [commit]
- id: end-of-file-fixer
stages: [commit]
- id: check-yaml
stages: [commit]
- id: check-json
stages: [commit]
- id: check-toml
stages: [commit]
- id: check-merge-conflict
stages: [commit]
- id: check-case-conflict
stages: [commit]
- id: detect-private-key
stages: [commit]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.3
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v2.4.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [] # optional: list of Conventional Commits types to allow e.g. [feat, fix, ci, chore, test]