forked from demisto/demisto-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
206 lines (204 loc) · 13.7 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
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
exclude: demisto_sdk/tests/test_files/.*|.circleci/config.yml|demisto_sdk/commands/.*/tests/test_files/.*
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.262"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/python-poetry/poetry
rev: "1.5.1"
hooks:
- id: poetry-check
- id: poetry-lock
args: [--check]
files: ^pyproject.toml$
- id: poetry-export
args: [--without-hashes, "-o", "requirements.txt"]
- repo: https://github.com/demisto/demisto-sdk
rev: v1.17.1
hooks:
- id: update-additional-dependencies
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.982
hooks:
- id: mypy
exclude: tests/.*|demisto_sdk/commands/init/templates/.*
# This is auto-generated dependencies list taken from `poetry.lock`. DO NOT EDIT MANUALLY
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.7.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"
- bracex==2.3.post1 ; python_version >= "3.8" and python_version < "3.11"
- cachetools==5.3.0 ; python_version >= "3.8" and python_version < "3.11"
- certifi==2022.12.7 ; python_version >= "3.8" and python_version < "3.11"
- cffi==1.15.1 ; python_version >= "3.8" and python_version < "3.11"
- chardet==5.1.0 ; python_version >= "3.8" and python_version < "3.11"
- charset-normalizer==3.1.0 ; python_version >= "3.8" and python_version < "3.11"
- click==8.1.3 ; python_version >= "3.8" and python_version < "3.11"
- colorama==0.4.6 ; python_version >= "3.8" and python_version < "3.11" and (platform_system == "Windows" or sys_platform == "win32")
- 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.5.3 ; 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.5 ; 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"
- demisto-py==3.2.10 ; 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"
- 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.1 ; 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.30 ; 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.0 ; python_version >= "3.8" and python_version < "3.11"
- google-auth==2.17.3 ; python_version >= "3.8" and python_version < "3.11"
- google-cloud-core==2.3.2 ; python_version >= "3.8" and python_version < "3.11"
- google-cloud-storage==2.8.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.59.0 ; python_version >= "3.8" and python_version < "3.11"
- humanfriendly==10.0 ; 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.12.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.2.0 ; python_version >= "3.8" and python_version < "3.11"
- jsonschema==4.17.3 ; 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-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.8.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"
- ordered-set==4.1.0 ; python_version >= "3.8" and python_version < "3.11"
- orjson==3.8.11 ; 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.5.0 ; python_version >= "3.8" and python_version < "3.11"
- pluggy==1.0.0 ; python_version >= "3.8" and python_version < "3.11"
- prettytable==3.7.0 ; python_version >= "3.8" and python_version < "3.11"
- protobuf==3.19.6 ; 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.10.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.7 ; 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==3.0.9 ; 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"
- pyrsistent==0.19.3 ; 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.3.1 ; 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 ; python_version >= "3.8" and python_version < "3.11"
- regex==2023.5.5 ; python_version >= "3.8" and python_version < "3.11"
- requests==2.29.0 ; python_version >= "3.8" and python_version < "3.11"
- rich==12.6.0 ; python_version >= "3.8" and python_version < "3.11"
- rsa==4.7.2 ; 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.22 ; python_version >= "3.8" and python_version < "3.11"
- setuptools==67.7.2 ; 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.0.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.65.0 ; python_version >= "3.8" and python_version < "3.11"
- typed-ast==1.5.4 ; python_version >= "3.8" and python_version < "3.11"
- typer[all]==0.7.0 ; python_version >= "3.8" and python_version < "3.11"
- types-chardet==5.0.4.5 ; 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.9 ; python_version >= "3.8" and python_version < "3.11"
- types-decorator==5.1.8.3 ; 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.8 ; 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.0.19.6 ; python_version >= "3.8" and python_version < "3.11"
- types-python-dateutil==2.8.19.12 ; 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.1 ; python_version >= "3.8" and python_version < "3.11"
- types-pyyaml==6.0.12.9 ; python_version >= "3.8" and python_version < "3.11"
- types-requests==2.28.11 ; python_version >= "3.8" and python_version < "3.11"
- types-setuptools==67.7.0.1 ; python_version >= "3.8" and python_version < "3.11"
- types-six==1.16.21.8 ; python_version >= "3.8" and python_version < "3.11"
- types-tabulate==0.9.0.2 ; python_version >= "3.8" and python_version < "3.11"
- types-ujson==5.7.0.5 ; python_version >= "3.8" and python_version < "3.11"
- types-urllib3==1.26.25.12 ; python_version >= "3.8" and python_version < "3.11"
- typing-extensions==4.5.0 ; python_version >= "3.8" and python_version < "3.11"
- tzdata==2023.3 ; python_version >= "3.8" and python_version < "3.11"
- tzlocal==4.3 ; python_version >= "3.8" and python_version < "3.11"
- ujson==5.7.0 ; python_version >= "3.8" and python_version < "3.11"
- urllib3==1.26.15 ; 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.5.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.1.0 ; python_version >= "3.8" and python_version < "3.11"
- zipp==3.15.0 ; python_version >= "3.8" and python_version < "3.10"
- repo: https://github.com/psf/black
rev: "22.12.0"
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-docstring-first
exclude: demisto_sdk/commands/init/templates/.*
- id: check-json
exclude: .vscode/.*
- id: check-yaml
language_version: python3
- id: name-tests-test
exclude: test_tools.py|demisto_sdk/commands/download/tests/tests_env/.*|demisto_sdk/commands/create_artifacts/tests/data|demisto_sdk/commands/common/content/tests/objects/pack_objects/script/script_test/TestNotUnifiedScript|demisto_sdk/commands/common/content/tests/objects/pack_objects/integration/integration_test/TestNotUnifiedIntegration|demisto_sdk/commands/test_content/tests/DemistoClientMock
- repo: https://github.com/jendrikseipp/vulture
rev: "v2.6"
hooks:
- id: vulture
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.10.1
hooks:
- id: validate-pyproject