-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.pre-commit-config.yaml
38 lines (38 loc) · 911 Bytes
/
.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
exclude: "^.venv/.*|.html"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.2.0"
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: pretty-format-json
args: ["--autofix"]
- id: check-merge-conflict
- repo: https://github.com/pycqa/isort
rev: "5.11.5"
hooks:
- id: isort
name: isort
- repo: https://github.com/psf/black
rev: "22.3.0"
hooks:
- id: black
- repo: local
hooks:
- id: lockfile
name: check poetry.lock
language: system
entry: poetry lock --no-update --check
files: ^pyproject.toml|poetry.lock$
pass_filenames: false
- id: flake8
name: flake8
language: system
entry: poetry run flake8
types: [python]
- id: mypy
name: mypy
language: system
entry: poetry run mypy
types: [python]
pass_filenames: false