-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
37 lines (37 loc) · 968 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
default_stages: [ commit ]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-toml
- repo: local
hooks:
- id: black
name: Formatting (black)
entry: poetry run black
language: system
types: [ python ]
stages: [ commit ]
- id: lint
name: Linter (pylint)
entry: poetry run pylint
language: system
types: [ python ]
stages: [ commit ]
- id: isort
name: Ordering imports (isort)
entry: poetry run isort
language: system
types: [ python ]
stages: [ commit ]
- id: test
name: Unit tests (pytest)
entry: poetry run pytest
pass_filenames: false
language: system
types: [ python ]
stages: [ push ]