-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
46 lines (41 loc) · 1.03 KB
/
.pre-commit-config.yaml
File metadata and controls
46 lines (41 loc) · 1.03 KB
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
default_stages: [ pre-commit ]
repos:
- repo: local
hooks:
- id: code-format
name: code-format
types: [ python ]
files: "pyproject.toml"
pass_filenames: false
language: system
entry: poetry run -- nox -s project:fix
- repo: local
hooks:
- id: type-check
name: type-check
types: [ python ]
pass_filenames: false
language: system
entry: poetry run -- nox -s lint:typing
- repo: local
hooks:
- id: lint
name: lint
types: [ python ]
pass_filenames: false
language: system
entry: poetry run -- nox -s lint:code
- repo: local
hooks:
- id: generate-api
name: generate-api
types: [ python ]
pass_filenames: false
language: system
entry: poetry run -- nox -s api:generate
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace