-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
62 lines (54 loc) · 1.42 KB
/
.pre-commit-config.yaml
File metadata and controls
62 lines (54 loc) · 1.42 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
exclude: '^docs/conf.py'
default_install_hook_types: [pre-commit, commit-msg]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v6.0.0"
hooks:
- id: check-added-large-files
args: ['--maxkb=16384']
- id: check-ast
- id: check-case-conflict
- id: check-illegal-windows-names
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: destroyed-symlinks
- id: end-of-file-fixer
- id: pretty-format-json
args: ['--autofix']
- id: requirements-txt-fixer
- id: sort-simple-yaml
- id: trailing-whitespace
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.18.1"
hooks:
- id: pyproject-fmt
- repo: https://github.com/codespell-project/codespell
rev: "v2.4.2"
hooks:
- id: codespell
stages: [commit-msg, pre-commit]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.15.6"
hooks:
# Run the linter.
- id: ruff-check
# Run the formatter.
- id: ruff-format
- repo: https://github.com/DetachHead/basedpyright-prek-mirror
rev: "1.38.2"
hooks:
- id: basedpyright
- repo: https://github.com/gitleaks/gitleaks
rev: "v8.24.2"
hooks:
- id: gitleaks
- repo: https://github.com/compilerla/conventional-pre-commit
rev: "v4.4.0"
hooks:
- id: conventional-pre-commit
stages: [commit-msg]