-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
.pre-commit-config.yaml
46 lines (46 loc) · 1.27 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: &flake8_version 6.0.0
hooks:
- &flake8_hook
id: flake8
additional_dependencies:
- flake8-annotations~=2.7
- flake8-bugbear==22.10.27
- flake8-docstrings~=1.4
- flake8-string-format~=0.3.0
- flake8-todo~=0.7
- pep8-naming~=0.12.1
- pydocstyle~=6.1,!=6.1.0
- repo: https://github.com/PyCQA/flake8
rev: *flake8_version
hooks:
- <<: *flake8_hook
alias: flake8-annotate
name: flake8 (with annotations)
stages: [manual]
args: [
--format,
"::error file=%(path)s,line=%(row)d,col=%(col)d::[flake8] %(code)s: %(text)s",
]