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