forked from demisto/content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config_template.yaml
290 lines (274 loc) · 17.9 KB
/
.pre-commit-config_template.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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
# This is a template, used and modified by the demisto-sdk pre-commit command.
exclude: .devcontainer/|.vscode|Pipfile.lock|.gitlab/ci/|.circleci/|docs
files: ''
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-json
- id: check-yaml
- id: check-ast
- id: check-merge-conflict
- id: debug-statements
language_version: python3
- id: name-tests-test
files: .+_test.py$
- repo: https://github.com/python-poetry/poetry
rev: "1.6.1"
hooks:
- id: poetry-check
- id: poetry-lock
args: [--check]
files: ^pyproject.toml$
- id: poetry-export
args: [--with, "dev,typing", --without-hashes, "-o", "requirements.txt"]
- repo: https://github.com/hadialqattan/pycln
rev: v2.1.2
hooks:
- id: pycln
args: [--all]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.272"
hooks:
- id: ruff
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: "v2.0.4"
hooks:
- id: autopep8
- repo: local
hooks:
- id: is-circle-changed
name: is-circle-changed
description: Checks if circle files are changed, and checkout to current if it is.
entry: ./Tests/scripts/is_file_up_to_date.sh .circleci/config.yml "" false
language: script
pass_filenames: false
- id: is-gitlab-changed
name: is-gitlab-changed
description: Checks if gitlab files are changed, and checkout to current if it is.
entry: ./Tests/scripts/is_file_up_to_date.sh .gitlab "" false
language: script
pass_filenames: false
- repo: https://github.com/demisto/demisto-sdk
rev: ""
hooks:
- id: update-additional-dependencies
args: [--pre_commit_config, .pre-commit-config_template.yaml]
- id: format
# update docker image to the latest version, assume no
args: ["-ud", "-n", "--no-validate"]
- id: validate
args: ["--skip-pack-dependencies"]
# enable with --test
- id: run-unit-tests
- id: secrets
args: ["--ignore-entropy"]
- id: no-implicit-optional
# remove this argument when this hook is ready to use
skip: true
- repo: https://github.com/sourcery-ai/sourcery
rev: "v1.6.0"
hooks:
- id: sourcery
args: [--no-summary, --diff, "git diff HEAD"]
skip: true
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.982
hooks:
- id: mypy
args: [--ignore-missing-imports, --check-untyped-defs, --show-error-codes, --follow-imports=silent, --allow-redefinition]
exclude: "test_data|tests_data|.venv|.*_test.py$|infrastructure_tests|.vulture_whitelist.py"
additional_dependencies:
- astor==0.8.1 ; python_version >= "3.8" and python_version < "3.11"
- astroid==2.9.3 ; python_version >= "3.8" and python_version < "3.11"
- attrs==23.1.0 ; python_version >= "3.8" and python_version < "3.11"
- autopep8==1.6.0 ; python_version >= "3.8" and python_version < "3.11"
- backports-zoneinfo==0.2.1 ; python_version >= "3.8" and python_version < "3.9"
- bandit==1.7.5 ; python_version >= "3.8" and python_version < "3.11"
- bcrypt==4.0.1 ; python_version >= "3.8" and python_version < "3.11"
- beautifulsoup4==4.12.2 ; python_version >= "3.8" and python_version < "3.11"
- boto3-stubs[accessanalyzer,acm,athena,cloudtrail,dynamodb,ec2,guardduty,iam,lambda,logs,network-firewall,route53,s3,sagemaker-runtime,secretsmanager,securityhub,sns,sqs,ssm,wafv2]==1.28.31 ; python_version >= "3.8" and python_version < "3.11"
- botocore-stubs==1.31.31 ; python_version >= "3.8" and python_version < "3.11"
- bracex==2.3.post1 ; python_version >= "3.8" and python_version < "3.11"
- cachetools==5.3.1 ; python_version >= "3.8" and python_version < "3.11"
- certifi==2023.7.22 ; python_version >= "3.8" and python_version < "3.11"
- cffi==1.15.1 ; python_version >= "3.8" and python_version < "3.11"
- cfgv==3.3.1 ; python_version >= "3.8" and python_version < "3.11"
- chardet==5.2.0 ; python_version >= "3.8" and python_version < "3.11"
- charset-normalizer==3.2.0 ; python_version >= "3.8" and python_version < "3.11"
- click==8.1.6 ; python_version >= "3.8" and python_version < "3.11"
- colorama==0.4.6 ; python_version >= "3.8" and python_version < "3.11"
- coloredlogs==15.0.1 ; python_version >= "3.8" and python_version < "3.11"
- commonmark==0.9.1 ; python_version >= "3.8" and python_version < "3.11"
- configargparse==1.7 ; python_version >= "3.8" and python_version < "3.11"
- configparser==5.3.0 ; python_version >= "3.8" and python_version < "3.11"
- coverage==7.2.7 ; python_version >= "3.8" and python_version < "3.11"
- cryptography==36.0.2 ; python_version >= "3.8" and python_version < "3.11"
- dateparser==1.1.8 ; python_version >= "3.8" and python_version < "3.11"
- decorator==5.1.1 ; python_version >= "3.8" and python_version < "3.11"
- defusedxml==0.7.1 ; python_version >= "3.8" and python_version < "3.11"
- demisto-py==3.2.10 ; python_version >= "3.8" and python_version < "3.11"
- demisto-sdk==1.19.2 ; python_version >= "3.8" and python_version < "3.11"
- dictdiffer==0.9.0 ; python_version >= "3.8" and python_version < "3.11"
- dictor==0.1.11 ; python_version >= "3.8" and python_version < "3.11"
- distlib==0.3.7 ; python_version >= "3.8" and python_version < "3.11"
- docker==5.0.3 ; python_version >= "3.8" and python_version < "3.11"
- docopt==0.6.2 ; python_version >= "3.8" and python_version < "3.11"
- exceptiongroup==1.1.2 ; python_version >= "3.8" and python_version < "3.11"
- filelock==3.12.2 ; python_version >= "3.8" and python_version < "3.11"
- flatten-dict==0.4.2 ; python_version >= "3.8" and python_version < "3.11"
- freezegun==1.2.2 ; python_version >= "3.8" and python_version < "3.11"
- future==0.18.3 ; python_version >= "3.8" and python_version < "3.11"
- gitdb==4.0.10 ; python_version >= "3.8" and python_version < "3.11"
- gitpython==3.1.32 ; python_version >= "3.8" and python_version < "3.11"
- giturlparse==0.10.0 ; python_version >= "3.8" and python_version < "3.11"
- google-api-core==2.11.1 ; python_version >= "3.8" and python_version < "3.11"
- google-api-core[grpc]==2.11.1 ; python_version >= "3.8" and python_version < "3.11"
- google-auth==2.22.0 ; python_version >= "3.8" and python_version < "3.11"
- google-cloud-compute==1.13.0 ; python_version >= "3.8" and python_version < "3.11"
- google-cloud-core==2.3.3 ; python_version >= "3.8" and python_version < "3.11"
- google-cloud-storage==2.10.0 ; python_version >= "3.8" and python_version < "3.11"
- google-crc32c==1.5.0 ; python_version >= "3.8" and python_version < "3.11"
- google-resumable-media==2.5.0 ; python_version >= "3.8" and python_version < "3.11"
- googleapis-common-protos==1.60.0 ; python_version >= "3.8" and python_version < "3.11"
- grpcio-status==1.56.2 ; python_version >= "3.8" and python_version < "3.11"
- grpcio==1.56.2 ; python_version >= "3.8" and python_version < "3.11"
- humanfriendly==10.0 ; python_version >= "3.8" and python_version < "3.11"
- identify==2.5.26 ; python_version >= "3.8" and python_version < "3.11"
- idna==3.4 ; python_version >= "3.8" and python_version < "3.11"
- imagesize==1.4.1 ; python_version >= "3.8" and python_version < "3.11"
- importlib-resources==5.13.0 ; python_version >= "3.8" and python_version < "3.11"
- inflection==0.5.1 ; python_version >= "3.8" and python_version < "3.11"
- iniconfig==2.0.0 ; python_version >= "3.8" and python_version < "3.11"
- isort==5.12.0 ; python_version >= "3.8" and python_version < "3.11"
- joblib==1.3.1 ; python_version >= "3.8" and python_version < "3.11"
- jsonschema-specifications==2023.7.1 ; python_version >= "3.8" and python_version < "3.11"
- jsonschema==4.18.6 ; python_version >= "3.8" and python_version < "3.11"
- junitparser==2.8.0 ; python_version >= "3.8" and python_version < "3.11"
- klara==0.6.3 ; python_version >= "3.8" and python_version < "3.11"
- lazy-object-proxy==1.9.0 ; python_version >= "3.8" and python_version < "3.11"
- mccabe==0.6.1 ; python_version >= "3.8" and python_version < "3.11"
- mergedeep==1.3.4 ; python_version >= "3.8" and python_version < "3.11"
- more-itertools==9.1.0 ; python_version >= "3.8" and python_version < "3.11"
- mypy-boto3-accessanalyzer==1.28.16 ; python_version >= "3.8" and python_version < "3.11"
- mypy-boto3-acm==1.28.16 ; python_version >= "3.8" and python_version < "3.11"
- mypy-boto3-athena==1.28.16 ; python_version >= "3.8" and python_version < "3.11"
- mypy-boto3-cloudtrail==1.28.24 ; python_version >= "3.8" and python_version < "3.11"
- mypy-boto3-dynamodb==1.28.27 ; python_version >= "3.8" and python_version < "3.11"
- mypy-boto3-ec2==1.28.31 ; python_version >= "3.8" and python_version < "3.11"
- mypy-boto3-guardduty==1.28.23 ; python_version >= "3.8" and python_version < "3.11"
- mypy-boto3-iam==1.28.16 ; python_version >= "3.8" and python_version < "3.11"
- mypy-boto3-lambda==1.28.19 ; python_version >= "3.8" and python_version < "3.11"
- mypy-boto3-logs==1.28.16 ; python_version >= "3.8" and python_version < "3.11"
- mypy-boto3-network-firewall==1.28.16 ; python_version >= "3.8" and python_version < "3.11"
- mypy-boto3-route53==1.28.16.post1 ; python_version >= "3.8" and python_version < "3.11"
- mypy-boto3-s3==1.28.27 ; python_version >= "3.8" and python_version < "3.11"
- mypy-boto3-sagemaker-runtime==1.28.16 ; python_version >= "3.8" and python_version < "3.11"
- mypy-boto3-secretsmanager==1.28.24 ; python_version >= "3.8" and python_version < "3.11"
- mypy-boto3-securityhub==1.28.30 ; python_version >= "3.8" and python_version < "3.11"
- mypy-boto3-sns==1.28.16 ; python_version >= "3.8" and python_version < "3.11"
- mypy-boto3-sqs==1.28.19 ; python_version >= "3.8" and python_version < "3.11"
- mypy-boto3-ssm==1.28.16 ; python_version >= "3.8" and python_version < "3.11"
- mypy-boto3-wafv2==1.28.16 ; python_version >= "3.8" and python_version < "3.11"
- mypy-extensions==1.0.0 ; python_version >= "3.8" and python_version < "3.11"
- mypy==0.982 ; python_version >= "3.8" and python_version < "3.11"
- neo4j==5.11.0 ; python_version >= "3.8" and python_version < "3.11"
- networkx==2.8.8 ; python_version >= "3.8" and python_version < "3.11"
- nltk==3.8.1 ; python_version >= "3.8" and python_version < "3.11"
- nodeenv==1.8.0 ; python_version >= "3.8" and python_version < "3.11"
- ordered-set==4.1.0 ; python_version >= "3.8" and python_version < "3.11"
- orjson==3.9.2 ; python_version >= "3.8" and python_version < "3.11"
- packaging==21.3 ; python_version >= "3.8" and python_version < "3.11"
- paramiko==2.12.0 ; python_version >= "3.8" and python_version < "3.11"
- pbr==5.11.1 ; python_version >= "3.8" and python_version < "3.11"
- pebble==5.0.3 ; python_version >= "3.8" and python_version < "3.11"
- pkgutil-resolve-name==1.3.10 ; python_version >= "3.8" and python_version < "3.9"
- platformdirs==3.10.0 ; python_version >= "3.8" and python_version < "3.11"
- pluggy==1.2.0 ; python_version >= "3.8" and python_version < "3.11"
- pre-commit==2.21.0 ; python_version >= "3.8" and python_version < "3.11"
- prettytable==3.8.0 ; python_version >= "3.8" and python_version < "3.11"
- proto-plus==1.22.3 ; python_version >= "3.8" and python_version < "3.11"
- protobuf==4.23.4 ; python_version >= "3.8" and python_version < "3.11"
- pyasn1-modules==0.3.0 ; python_version >= "3.8" and python_version < "3.11"
- pyasn1==0.5.0 ; python_version >= "3.8" and python_version < "3.11"
- pycodestyle==2.8.0 ; python_version >= "3.8" and python_version < "3.11"
- pycparser==2.21 ; python_version >= "3.8" and python_version < "3.11"
- pydantic==1.10.12 ; python_version >= "3.8" and python_version < "3.11"
- pygments==2.15.1 ; python_version >= "3.8" and python_version < "3.11"
- pykwalify==1.8.0 ; python_version >= "3.8" and python_version < "3.11"
- pylint==2.12.2 ; python_version >= "3.8" and python_version < "3.11"
- pynacl==1.5.0 ; python_version >= "3.8" and python_version < "3.11"
- pyparsing==2.4.7 ; python_version >= "3.8" and python_version < "3.11"
- pypdf2==1.28.6 ; python_version >= "3.8" and python_version < "3.11"
- pyreadline3==3.4.1 ; sys_platform == "win32" and python_version >= "3.8" and python_version < "3.11"
- pyspellchecker==0.6.3 ; python_version >= "3.8" and python_version < "3.11"
- pytest-freezegun==0.4.2 ; python_version >= "3.8" and python_version < "3.11"
- pytest==7.4.0 ; python_version >= "3.8" and python_version < "3.11"
- python-dateutil==2.8.2 ; python_version >= "3.8" and python_version < "3.11"
- python-dotenv==0.20.0 ; python_version >= "3.8" and python_version < "3.11"
- pytz-deprecation-shim==0.1.0.post0 ; python_version >= "3.8" and python_version < "3.11"
- pytz==2023.3 ; python_version >= "3.8" and python_version < "3.11"
- pywin32==227 ; python_version >= "3.8" and python_version < "3.11" and sys_platform == "win32"
- pyyaml==6.0.1 ; python_version >= "3.8" and python_version < "3.11"
- referencing==0.30.0 ; python_version >= "3.8" and python_version < "3.11"
- regex==2023.6.3 ; python_version >= "3.8" and python_version < "3.11"
- requests==2.31.0 ; python_version >= "3.8" and python_version < "3.11"
- rich==12.6.0 ; python_version >= "3.8" and python_version < "3.11"
- rpds-py==0.9.2 ; python_version >= "3.8" and python_version < "3.11"
- rsa==4.9 ; python_version >= "3.8" and python_version < "3.11"
- ruamel-yaml-clib==0.2.7 ; platform_python_implementation == "CPython" and python_version < "3.11" and python_version >= "3.8"
- ruamel-yaml==0.17.32 ; python_version >= "3.8" and python_version < "3.11"
- setuptools==68.0.0 ; python_version >= "3.8" and python_version < "3.11"
- shellingham==1.5.0.post1 ; python_version >= "3.8" and python_version < "3.11"
- six==1.16.0 ; python_version >= "3.8" and python_version < "3.11"
- slack-sdk==3.21.3 ; python_version >= "3.8" and python_version < "3.11"
- smmap==5.0.0 ; python_version >= "3.8" and python_version < "3.11"
- soupsieve==2.4.1 ; python_version >= "3.8" and python_version < "3.11"
- stevedore==5.1.0 ; python_version >= "3.8" and python_version < "3.11"
- tabulate==0.9.0 ; python_version >= "3.8" and python_version < "3.11"
- toml==0.10.2 ; python_version >= "3.8" and python_version < "3.11"
- tomli==2.0.1 ; python_version >= "3.8" and python_version < "3.11"
- tqdm==4.66.1 ; python_version >= "3.8" and python_version < "3.11"
- typed-ast==1.5.5 ; python_version >= "3.8" and python_version < "3.11"
- typer[all]==0.7.0 ; python_version >= "3.8" and python_version < "3.11"
- types-awscrt==0.19.0 ; python_version >= "3.8" and python_version < "3.11"
- types-chardet==5.0.4.6 ; python_version >= "3.8" and python_version < "3.11"
- types-cryptography==3.3.23.2 ; python_version >= "3.8" and python_version < "3.11"
- types-dateparser==1.1.4.10 ; python_version >= "3.8" and python_version < "3.11"
- types-decorator==5.1.8.4 ; python_version >= "3.8" and python_version < "3.11"
- types-emoji==2.1.0.3 ; python_version >= "3.8" and python_version < "3.11"
- types-filelock==3.2.7 ; python_version >= "3.8" and python_version < "3.11"
- types-futures==3.3.8 ; python_version >= "3.8" and python_version < "3.11"
- types-ipaddress==1.0.8 ; python_version >= "3.8" and python_version < "3.11"
- types-markdown==3.4.2.10 ; python_version >= "3.8" and python_version < "3.11"
- types-mock==4.0.15.2 ; python_version >= "3.8" and python_version < "3.11"
- types-paramiko==2.12.0.1 ; python_version >= "3.8" and python_version < "3.11"
- types-pkg-resources==0.1.3 ; python_version >= "3.8" and python_version < "3.11"
- types-protobuf==3.20.4.6 ; python_version >= "3.8" and python_version < "3.11"
- types-pymysql==1.1.0.1 ; python_version >= "3.8" and python_version < "3.11"
- types-python-dateutil==2.8.19.14 ; python_version >= "3.8" and python_version < "3.11"
- types-pytz==2022.7.1.2 ; python_version >= "3.8" and python_version < "3.11"
- types-pyvmomi==8.0.0.6 ; python_version >= "3.8" and python_version < "3.11"
- types-pyyaml==6.0.12.11 ; python_version >= "3.8" and python_version < "3.11"
- types-requests==2.28.11 ; python_version >= "3.8" and python_version < "3.11"
- types-s3transfer==0.6.2 ; python_version >= "3.8" and python_version < "3.11"
- types-setuptools==67.8.0.0 ; python_version >= "3.8" and python_version < "3.11"
- types-six==1.16.21.9 ; python_version >= "3.8" and python_version < "3.11"
- types-tabulate==0.9.0.3 ; python_version >= "3.8" and python_version < "3.11"
- types-tqdm==4.66.0.2 ; python_version >= "3.8" and python_version < "3.11"
- types-ujson==5.8.0.1 ; python_version >= "3.8" and python_version < "3.11"
- types-urllib3==1.26.25.14 ; python_version >= "3.8" and python_version < "3.11"
- typing-extensions==4.7.1 ; python_version >= "3.8" and python_version < "3.11"
- tzdata==2023.3 ; python_version >= "3.8" and python_version < "3.11"
- tzlocal==4.3.1 ; python_version >= "3.8" and python_version < "3.11"
- ujson==5.8.0 ; python_version >= "3.8" and python_version < "3.11"
- urllib3==1.26.16 ; python_version >= "3.8" and python_version < "3.11"
- virtualenv==20.24.2 ; python_version >= "3.8" and python_version < "3.11"
- vulture==2.7 ; python_version >= "3.8" and python_version < "3.11"
- wcmatch==8.4.1 ; python_version >= "3.8" and python_version < "3.11"
- wcwidth==0.2.6 ; python_version >= "3.8" and python_version < "3.11"
- websocket-client==1.6.1 ; python_version >= "3.8" and python_version < "3.11"
- wrapt==1.13.3 ; python_version >= "3.8" and python_version < "3.11"
- yamlordereddictloader==0.4.0 ; python_version >= "3.8" and python_version < "3.11"
- z3-solver==4.12.2.0 ; python_version >= "3.8" and python_version < "3.11"
- zipp==3.16.2 ; python_version >= "3.8" and python_version < "3.10"