forked from MAIF/arta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
84 lines (84 loc) · 2.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-ast
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-docstring-first
- id: check-json
- id: check-yaml
exclude: ^(docs/)
- id: debug-statements
- id: end-of-file-fixer
exclude: ^(docs/)
- id: pretty-format-json
args: [--autofix]
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
exclude: ^(docs/)
- id: mixed-line-ending
args: [--fix=lf]
exclude: ^(docs/)
- id: check-added-large-files
args: [--maxkb=500]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.2
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
hooks:
- id: mypy
args: [--config-file=pyproject.toml]
files: src
additional_dependencies: [pydantic~=2.0]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.21.2
hooks:
- id: gitleaks
- repo: https://github.com/pypa/pip-audit
rev: v2.7.3
hooks:
- id: pip-audit
args: [--skip-editable]
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.6.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [feat, fix, ci, chore, test, docs]
- repo: local
hooks:
- id: cov-clean
name: Coverage - Clean
language: system
entry: coverage erase
types: [python]
pass_filenames: false
always_run: true
- id: tox-check
name: Tests
entry: tox
language: system
pass_filenames: false
always_run: true
- id: cov-check
name: Coverage
language: system
entry: coverage report -m --fail-under=90
types: [python]
pass_filenames: false
always_run: true
- id: cov-erase
name: Coverage - Erase
language: system
entry: coverage erase
types: [python]
pass_filenames: false
always_run: true