-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
36 lines (36 loc) · 1.01 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: end-of-file-fixer
exclude: |
(?x)^(
CHANGELOG.tpl.md|
CHANGELOG.md|
CHANGELOG-dev.md
)$
- id: check-yaml
- id: mixed-line-ending
args: [--fix=lf]
# - id: no-commit-to-branch
# args: [--branch=main, --branch=develop]
# exclude: |
# (?x)^(
# CHANGELOG.md|
# CHANGELOG-dev.md
# )$
# always_run: false # required to respect exclude
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v1.2.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [] # optional: list of Conventional Commits types to allow
- repo: https://github.com/python-poetry/poetry
rev: dca6ff2699a06c0217ed6d5a278fa3146e4136ff
hooks:
- id: poetry-check