-
Notifications
You must be signed in to change notification settings - Fork 56
/
.pre-commit-config.yaml
67 lines (67 loc) · 1.55 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
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.5.4
hooks:
- id: ruff
args:
- --fix
exclude: CommonServerPython.py
- id: ruff-format
- repo: https://github.com/pappasam/toml-sort
rev: v0.23.1
hooks:
- id: toml-sort-fix
exclude: poetry.lock
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-json
- id: check-yaml
exclude: .gitlab
- id: check-ast
- id: check-merge-conflict
- id: name-tests-test
files: .+_test.py$
- id: trailing-whitespace
- id: check-toml
- id: check-xml
- repo: https://github.com/python-poetry/poetry
rev: 1.8.3
hooks:
- id: poetry-check
args:
- --lock
files: ^pyproject.toml$
- repo: https://github.com/hadialqattan/pycln
rev: v2.4.0
hooks:
- id: pycln
args:
- --all
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.1
hooks:
- id: mypy
entry: mypy
args:
- --show-error-codes
additional_dependencies:
- types-requests
- types-paramiko
- types-PyYAML
- types-setuptools
- types-ujson
- types-decorator
- types-retry
- types-pytz
- types-python-dateutil
- types-tabulate
- types-dateparser
types: [python]
# duplicate here and in pyproject.toml because https://github.com/python/mypy/issues/13916
exclude: artifacts*|.*_test|test_.*|test_data|tests_data|.venv
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck
args: ["--severity=error"]