forked from Modalities/modalities
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
36 lines (36 loc) · 949 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
default_install_hook_types:
- pre-commit
- prepare-commit-msg
- commit-msg
repos:
- repo: https://github.com/pycqa/isort
rev: 5.11.5
hooks:
- id: isort
stages: [pre-commit]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.9.1
hooks:
- id: black
language_version: python3.10
stages: [pre-commit]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.278
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
stages: [pre-commit]
- repo: local
hooks:
- id: custom-commit-msg
stages: [prepare-commit-msg]
name: "Apply conventional commit constraints to default revert message"
entry: ./scripts/convco_for_reverts.sh
language: system
types: [text]
- repo: https://github.com/LuzianHahn/conventional-pre-commit
rev: v2.4.1
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [feat, fix, ci, chore, test, refactor, debug, docs, perf, revert]