-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
39 lines (39 loc) · 1.13 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
# Pre-commit hooks
repos:
# Execute external scripts
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.28.0
hooks:
- id: commitizen
stages: [commit-msg]
# Execute local scripts
- repo: local
hooks:
- id: run-formatters
name: Run formatters
entry: poetry run poe formatters
language: system
pass_filenames: false
stages: [pre-commit, pre-push]
files: ^(app/|poetry.lock|run.py)
- id: run-linters
name: Run linters
entry: poetry run poe linters
language: system
pass_filenames: false
stages: [pre-commit, pre-push]
files: ^(app/|poetry.lock|run.py)
- id: run-typings
name: Run typings
entry: poetry run poe typings
language: system
pass_filenames: false
stages: [pre-commit, pre-push]
files: ^(app/|poetry.lock|run.py)
# - id: run-tests
# name: Run tests
# entry: poetry run poe tests
# language: system
# pass_filenames: false
# stages: [pre-push]
# files: ^(app/|poetry.lock|run.py|tests/)