-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
53 lines (53 loc) · 1.59 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
repos:
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/ambv/black
rev: 23.12.1
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-merge-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
- id: check-yaml
exclude: '^.gitlab-ci.yml$'
- id: debug-statements
- id: requirements-txt-fixer
- id: detect-private-key
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
language_version: python3
additional_dependencies:
# Keep versions in sync with requirements/dev.txt
- types-requests==2.27.16
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
# Keep in sync with .flake8. pre-commit does not
# inherit 'exclude' config option from .flake8
exclude: '^tests/'
additional_dependencies:
- flake8-bugbear==23.12.2
- flake8-comprehensions==3.14.0
- flake8-docstrings==1.7.0
- flake8-junit-report==2.1.0
- flake8-logging-format==0.9.0
- flake8-pep3101==2.1.0
- flake8-print==5.0.0
- flake8-rst==0.8.0
- flake8-rst-docstrings==0.3.0
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-use-type-annotations
- id: python-check-blanket-type-ignore
- id: python-check-blanket-noqa