-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.pre-commit-config.yaml
47 lines (42 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
47
exclude: ^.*\.(jpg|JPG|gif|GIF|doc|DOC|pdf|PDF|svg|SVG|png|PNG)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
args: ["--maxkb=4096"]
- id: check-merge-conflict
- id: end-of-file-fixer
# - repo: https://github.com/igorshubovych/markdownlint-cli
# rev: "v0.31.1"
# hooks:
# - id: markdownlint
# files: \.md$
# language_version: "13.14.0"
# args: [--fix]
# - repo: https://github.com/pycqa/flake8
# rev: 4.0.1
# hooks:
# - id: flake8
# args: [--max-line-length=120]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
# TODO: black ultimately without exclusions
exclude: (^.*tests\/.*$)
args: [--config=pyproject.toml]
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
# TODO: isort ultimately without exclusions
exclude: (^.*tests\/.*$)
args: [--settings-path=pyproject.toml, --filter-files]
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.942
# hooks:
# - id: mypy
# exclude: (^.*tests\/.*$|^.*setup.py)
# args: [--config=pyproject.toml]