-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
53 lines (46 loc) · 1.21 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
45
46
47
48
49
50
51
52
53
default_stages:
- pre-commit
default_install_hook_types:
- pre-commit
- commit-msg
- pre-push
default_language_version:
python: python3.9
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.30.0
hooks:
- id: commitizen
stages:
- commit-msg
- id: commitizen-branch
stages:
- pre-push
args:
- --rev-range
- origin/master..HEAD
always_run: true
pass_filenames: false
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.1
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/PyCQA/docformatter
# Workaround for latest release (1.7.5) being incompatible with
# pre-commit >= 4.
# https://github.com/PyCQA/docformatter/issues/293#issuecomment-2419238424
rev: "eb1df347edd128b30cd3368dddc3aa65edcfac38"
hooks:
- id: docformatter
additional_dependencies: [tomli]
args: ["--in-place", "--config", "./pyproject.toml"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.13.0'
hooks:
- id: mypy
additional_dependencies: [
pyodbc,
pytest,
]