-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
42 lines (41 loc) · 1.13 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
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
hooks:
- id: pyupgrade
args: ['--py36-plus','--exit-zero-even-if-changed']
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
language_version: python
- repo: https://github.com/PyCQA/flake8
rev: 7.1.0
hooks:
- id: flake8
# TODO: remove F40x, E772 and fix errors
# Incompatible with black: W503
args: ['--max-line-length=120','--ignore=W503,E203,F401,F403,F405,E722']
additional_dependencies:
# - flake8-print
- flake8-2020
- repo: https://github.com/mgedmin/check-manifest
rev: "0.49"
hooks:
- id: check-manifest
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: 'v1.8.0'
# hooks:
# - id: mypy
# files: '^src/'
# additional_dependencies:
# - types-attrs
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: rst-backticks