-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
78 lines (78 loc) · 2.19 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
76
77
78
default_language_version:
python: python3.10
ci:
autoupdate_commit_msg: 'chore: pre-commit autoupdate'
autofix_commit_msg: 'chore: pre-commit auto fixes [...]'
skip: [poetry-lock]
repos:
- repo: local
hooks:
- id: format
name: format code
entry: make format
language: system
types: [python]
pass_filenames: false
- id: test
name: unit testing
entry: make test
language: system
types: [python]
pass_filenames: false
- id: dependency check
name: deptry
entry: poetry run deptry . --known-first-party ot_orchestration
language: system
types: [python]
pass_filenames: false
# Hook for formatting yaml files.
- repo: https://github.com/google/yamlfmt
rev: v0.13.0
hooks:
- id: yamlfmt
# Hook for parsing and sanity check of yaml files.
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
hooks:
- id: yamllint
args: ['-d', '{rules: {line-length: {max: 200}}}']
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: 'CHANGELOG.md'
- id: debug-statements
- id: check-merge-conflict
- id: check-case-conflict
- id: check-json
exclude: (.vscode|.devcontainer)
- id: no-commit-to-branch
args:
- --branch=dev
- --branch=main
- id: check-toml
- id: check-ast
- id: debug-statements
- id: check-docstring-first
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-mock-methods
- id: python-check-blanket-noqa
- repo: https://github.com/hadialqattan/pycln
rev: v2.4.0
# Remove unused import statements.
hooks:
- id: pycln
args: [--all]
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.17.0
hooks:
- id: commitlint
additional_dependencies: ['@commitlint/[email protected]']
stages: [commit-msg]
- repo: https://github.com/lovesegfault/beautysh
rev: v6.2.1
hooks:
- id: beautysh