-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
67 lines (60 loc) · 1.87 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/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-json
- id: check-xml
- id: check-toml
- id: check-added-large-files
- id: check-merge-conflict
- id: check-symlinks
- id: detect-private-key
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: end-of-file-fixer
exclude: '.*\\.json'
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
hooks:
- id: mypy
verbose: true
additional_dependencies: ['types-requests', 'types-python-dateutil', 'types-pytz']
- repo: https://github.com/psf/black
rev: 24.3.0
hooks:
- id: black
args: [
'--line-length=120',
'--skip-string-normalization',
'--target-version=py312',
]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: [
'--filter-files',
'--profile=black', #For interop with black
]
minimum_pre_commit_version: '2.9.2'
- repo: https://github.com/PyCQA/pylint
rev: v3.1.0
hooks:
- id: pylint
args: ['--disable=line-too-long,missing-module-docstring,missing-function-docstring,missing-class-docstring,logging-fstring-interpolation,too-many-arguments,too-few-public-methods,too-many-branches,too-many-statements,too-many-instance-attributes']
#args: ["--disable=all", "--enable=F,E,unreachable,duplicate-key,unused-variable,unused-import,unnecessary-semicolon,global-variable-not-assigned,unused-variable,binary-op-exception,bad-format-string,anomalous-backslash-in-s
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
hooks:
- id: pyupgrade
args: ['--py312-plus']
- repo: https://github.com/PyCQA/bandit
rev: 1.7.8
hooks:
- id: bandit
#default_language_version:
# python: python3.12