forked from demisto/demisto-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
62 lines (62 loc) · 2.43 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
exclude: demisto_sdk/tests/test_files/.*|.circleci/config.yml|demisto_sdk/commands/.*/tests/test_files/.*
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.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
- id: debug-statements
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/pycqa/flake8
rev: "4.0.1"
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.6.0
hooks:
- id: autopep8
- repo: https://github.com/timothycrosley/isort
rev: 5.10.1
hooks:
- id: isort
args: [--atomic]
types: [python]
verbose: true
exclude: demisto_sdk/commands/init/templates/.*
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.1
hooks:
- id: pyupgrade
exclude: test_tools.py|demisto_sdk/commands/download/tests/tests_env/.*
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.941
hooks:
- id: mypy
exclude: tests/.*|demisto_sdk/commands/init/templates/.*
additional_dependencies:
[
types-setuptools==57.0.0,
types-ujson==0.1.1,
types-pytz==2021.1.0,
types-requests==2.25,
types-decorator==0.1.5,
types-dateparser==0.1.3,
types-tabulate==0.1.1,
types-python-dateutil==0.1.4,
types-filelock==3.2.5
]
- repo: https://gitlab.com/smop/pre-commit-hooks
rev: v1.0.0
hooks:
- id: check-poetry
- repo: https://github.com/jendrikseipp/vulture
rev: "v2.3"
hooks:
- id: vulture