-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
75 lines (69 loc) · 2.07 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
70
71
72
73
74
75
exclude: ".idea/"
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: local
hooks:
- id: ruff-format
name: ruff-format
entry: "bin/ruff-format"
require_serial: true
language: script
pass_filenames: true
files: "src/python/|test/python/"
types: [python]
- id: ruff-check
name: ruff-check
entry: "bin/ruff-check"
require_serial: true
language: script
pass_filenames: true
files: "src/python/|test/python/"
types: [python]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-ast
- id: check-added-large-files
args: ["--maxkb=1000"]
- 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
- id: check-yaml
args: ["--unsafe"]
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: forbid-submodules
- id: name-tests-test
- id: trailing-whitespace
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.1.0
hooks:
- id: commitizen
additional_dependencies: [cz-conventional-gitmoji]
- repo: https://github.com/ljnsn/cz-conventional-gitmoji
rev: v0.6.1
hooks:
- id: conventional-gitmoji
# this seems to break python blocks created by embedding src files
# - repo: https://github.com/asottile/blacken-docs
# rev: 1.18.0
# hooks:
# - id: blacken-docs
# additional_dependencies: [black]
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
name: Run codespell to check for common misspellings in files
language: python
types: [text]
exclude: "poetry.lock|CHANGELOG.md"