forked from rossumai/rossum-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
38 lines (37 loc) · 1.24 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
repos:
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.259
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.981
hooks:
- id: mypy
additional_dependencies: [
types-aiofiles,
types-mock,
]
- repo: local
hooks:
- id: commitizen-branch
name: commitizen conditionally check branch
description: >
Commitizen fails when there are no new commits. To overcome this, we created
tiny wrapper that verifies there are commits to check.
Original description from Commitizen:
Check all commit messages that are already on the current branch but not the
default branch on the origin repository. Useful for checking messages after
the fact (e.g., pre-push or in CI) without an expensive check of the entire
repository history.
entry: ./conditional-commitizen.sh
always_run: true
language: python
minimum_pre_commit_version: "1.4.3"
additional_dependencies: [
'commitizen',
]