forked from freeipa/ipa-tuura
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
44 lines (39 loc) · 1.19 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
40
41
42
43
44
---
default_language_version:
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
exclude: ^.*\.(bat)$
- id: trailing-whitespace
exclude: ^.*\.(md|rst)$
- id: debug-statements
- id: mixed-line-ending
args: [--fix=lf]
exclude: ^.*\.(bat)$
- id: check-merge-conflict
- repo: https://github.com/jorisroovers/gitlint
rev: v0.18.0
hooks:
- id: gitlint
- repo: https://github.com/adrienverge/yamllint
rev: v1.28.0
hooks:
- id: yamllint
- repo: https://github.com/ambv/black
rev: 22.10.0
hooks:
- id: black
exclude: ^(doc/|src/ipa-tuura/ipatuura/migrations/|src/ipa-tuura/domains/migrations/|src/ipa-tuura/root/settings).*
types: [python]
args: [--safe, --quiet, --line-length, "88"]
require_serial: true
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
additional_dependencies: [toml]
exclude: ^(doc/|src/ipa-tuura/ipatuura/migrations/|src/ipa-tuura/domains/migrations/|src/ipa-tuura/root/settings).*