-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
56 lines (55 loc) · 1.54 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
default_language_version:
python: python3.11
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-ast
- id: check-toml
- id: check-yaml
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear==23.1.20
- flake8-comprehensions==3.10.1
- flake8-deprecated==2.0.1
- flake8-docstrings==1.7.0
- flake8-implicit-str-concat==0.3.0
- flake8-keyword-arguments==0.1.0
- flake8-print==5.0.0
- flake8-sfs==0.0.4
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.910
hooks:
- id: mypy
additional_dependencies:
- types-PyYAML==5.4.10
- types-setuptools==57.4.0
- types-requests==2.25.9
- types-python-dateutil==2.8.19
exclude: tests
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.32.0
hooks:
- id: markdownlint
- repo: https://github.com/jazzband/pip-tools
rev: 6.13.0
hooks:
- id: pip-compile
name: pip-compile requirements.txt
files: setup.cfg
args: [setup.cfg, --resolver=backtracking,
--upgrade, --extra, dev, -q, -o,
requirements.txt]