Skip to content

Commit bb846b0

Browse files
committed
Update pre-commit configuration
1 parent d0d385e commit bb846b0

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.pre-commit-config.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
default_stages: [ commit ]
2+
repos:
3+
4+
- repo: local
5+
hooks:
6+
- id: code-format
7+
name: code-format
8+
types: [ python ]
9+
pass_filenames: false
10+
language: system
11+
entry: poetry run nox -s fix
12+
13+
- repo: local
14+
hooks:
15+
- id: type-check
16+
name: type-check
17+
types: [ python ]
18+
pass_filenames: false
19+
language: system
20+
entry: poetry run nox -s type-check
21+
22+
- repo: local
23+
hooks:
24+
- id: lint
25+
name: lint
26+
types: [ python ]
27+
pass_filenames: false
28+
language: system
29+
entry: poetry run nox -s lint
30+
31+
- repo: https://github.com/pre-commit/pre-commit-hooks
32+
rev: v4.4.0
33+
hooks:
34+
- id: check-yaml
35+
- id: end-of-file-fixer
36+
- id: trailing-whitespace

0 commit comments

Comments
 (0)