-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
150 lines (150 loc) · 3.72 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
---
default_install_hook_types:
- pre-commit
- commit-msg
repos:
- repo: https://github.com/PyCQA/bandit
rev: 1.7.6
hooks:
- id: bandit
additional_dependencies:
- .[toml]
args:
- "-c"
- "pyproject.toml"
- "-x"
- "tests"
- "-r"
- "pi_portal"
pass_filenames: false
stages: [pre-commit]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.22.0
hooks:
- id: check-jsonschema
name: check-github-workflow-push-schema
files: "^\\.github/config/workflows/workflow-push.json$"
args:
- "--schemafile"
- ".github/config/schemas/workflows/workflow-push.json"
stages: [pre-commit]
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.2.2
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/akaihola/darglint2
rev: v1.8.2
hooks:
- id: darglint2
stages: [pre-commit]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
types: []
files: "^.+\\.pyi?$"
stages: [pre-commit]
- repo: https://github.com/PyCQA/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
name: pydocstyle (production)
args:
- "--config=./.pydocstyle"
files: "^pi_portal/((?!test)(?!metaclass).)*\\.py$"
stages: [pre-commit]
- id: pydocstyle
name: pydocstyle (tests)
args:
- "--config=./.pydocstyle.tests"
files: "^pi_portal/.*test.*\\.py$"
stages: [pre-commit]
- repo: https://github.com/cicd-tools-org/pre-commit.git
rev: 0.4.0
hooks:
- id: format-shell
args:
- "-w"
- "--indent=2"
- "-ci"
- "-sr"
- id: format-toml
- id: lint-dockerfile
- id: lint-github-workflow-header
- id: lint-github-workflow
- id: lint-markdown
args:
- "-c"
- ".markdownlint.yml"
- "--ignore"
- "documentation/source"
- id: lint-shell
args:
- "--color=always"
- "--source-path=SCRIPTDIR"
- "--exclude=SC2317"
- "-x"
- id: security-credentials
- id: spelling-commit-message
- id: spelling-markdown
- id: spelling-vale-synchronize
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.33.0
hooks:
- id: yamllint
args:
- "-c"
- "./.yamllint.yml"
stages: [pre-commit]
- repo: https://github.com/google/yapf
rev: v0.40.2
hooks:
- id: yapf
name: "yapf"
args:
- "-i"
- "--parallel"
types: []
files: "^.+\\.pyi?$"
stages: [pre-commit]
require_serial: true
- repo: local
hooks:
- id: conflict-markers
name: "conflict-markers"
entry: git
args:
- --no-pager
- diff
- --cached
- --check
language: system
pass_filenames: false
require_serial: true
- id: lint-python
name: "lint-python"
language: system
entry: poetry
args:
- "run"
- "pylint"
files: "^.+\\.py$"
stages: [pre-commit]
- id: types
name: "types"
language: system
entry: poetry
args:
- "run"
- "mypy"
- "--strict"
- "--show-error-codes"
- "--implicit-reexport"
- "--explicit-package-bases"
- "pi_portal"
files: "^.+\\.pyi?$"
pass_filenames: false
require_serial: true
stages: [pre-commit]