-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
69 lines (61 loc) · 1.84 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
ci:
autofix_prs: false
autoupdate_commit_msg: ":arrow-up: dep-bump(pre-commit): update pre-commit hooks"
default_install_hook_types: [pre-commit, commit-msg]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-ast
- id: check-added-large-files
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-xml
exclude: (?x)(^.idea/)
- id: check-yaml
args: ["--unsafe"]
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: forbid-submodules
- id: trailing-whitespace
- repo: https://gitlab.com/bmares/check-json5
rev: v1.0.0
hooks:
- id: check-json5
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.3
hooks:
- id: ruff # linter
name: ruff-check
types_or: [python, pyi, jupyter]
args: [--fix]
- id: ruff-format # formatter
types_or: [python, pyi, jupyter]
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.25.0
hooks:
- id: commitizen
additional_dependencies: [cz-conventional-gitmoji]
- repo: https://github.com/ljnsn/cz-conventional-gitmoji
rev: v0.3.1
hooks:
- id: conventional-gitmoji
- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
hooks:
- id: blacken-docs
additional_dependencies: [black]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
name: Run codespell to check for common misspellings in files
language: python
types: [text]
exclude: "uv.lock|CHANGELOG.md"