-
Notifications
You must be signed in to change notification settings - Fork 59
/
.pre-commit-config.yaml
68 lines (67 loc) · 1.68 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
default_language_version:
python: python3.12
repos:
- repo: https://github.com/pre-commit/pre-commit
rev: v3.7.1
hooks:
- id: validate_manifest
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-docstring-first
- id: check-json
exclude: ^test-data/.*$
- id: check-yaml
exclude: ^test-data/.*$
- id: debug-statements
- id: end-of-file-fixer
exclude: ^test-data/.*$
- id: name-tests-test
- id: pretty-format-json
args: [--autofix, --indent, '4']
- id: requirements-txt-fixer
files: ^requirements-dev\.txt$
- id: trailing-whitespace
exclude: ^test-data/.*$
- id: fix-encoding-pragma
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.13.0
hooks:
- id: reorder-python-imports
args:
- --remove-import
- from __future__ import absolute_import
- --remove-import
- from __future__ import print_function
- --remove-import
- from __future__ import unicode_literals
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.13.0
hooks:
- id: pretty-format-yaml
exclude: ^test-data/.*$
args:
- --autofix
- repo: https://github.com/ambv/black
rev: 24.4.2
hooks:
- id: black
args: [--config, .black.toml]
- repo: https://github.com/PyCQA/flake8
rev: 7.1.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.1
hooks:
- id: mypy
exclude: ^(\.github/workflows/bump_external_releases\.py)$
additional_dependencies:
- types-requests
- types-setuptools
- repo: https://github.com/PyCQA/bandit
rev: 1.7.9
hooks:
- id: bandit
exclude: ^tests/.*\.py$