generated from inovintell/template
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.pre-commit-config.yaml
119 lines (119 loc) · 2.89 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
---
fail_fast: true
exclude: docs/gen_ref_pages.py
repos:
- repo: local
hooks:
- id: poetry-check
verbose: true
name: Poetry Check
entry: poetry check
pass_filenames: false
language: system
stages:
- commit
always_run: true
- id: poetry-lock
verbose: true
name: Poetry Lock
entry: poetry lock
pass_filenames: false
language: system
stages:
- commit
always_run: true
- id: yaml-linter
verbose: true
name: YAML Linter
entry: poetry run yamllint
language: system
stages:
- commit
types:
- yaml
- id: python-autoflake
verbose: true
name: Python Autoflake Fixer
entry: poetry run autoflake --in-place
language: system
stages:
- commit
types:
- python
- id: python-tryceratops
verbose: true
name: Python Tryceratops Fixer
entry: poetry run tryceratops --autofix
language: system
stages:
- commit
types:
- python
require_serial: true
- id: python-docformatter
verbose: true
name: Python Docformatter Fixer
entry: poetry run docformatter --recursive --in-place
language: system
stages:
- commit
types:
- python
- id: python-black
verbose: true
name: Python Black Fixer
entry: poetry run black
language: system
stages:
- commit
types:
- python
- id: python-interrogate
verbose: true
name: Python Docstrings Coverage
entry: poetry run interrogate -c pyproject.toml
language: system
stages:
- commit
types:
- python
- id: python-ruff
verbose: true
name: Python Ruff Linter
entry: poetry run ruff check --fix
language: system
stages:
- commit
types:
- python
- id: python-pytype
verbose: true
name: Python Static Type Checker
entry: poetry run pytype
language: system
stages:
- commit
types:
- python
- id: python-tests
verbose: true
name: Python Tests
entry: >
poetry run pytest -n auto --pretty --cov=src
--cov-fail-under=100 --cov-report=term-missing test
pass_filenames: false
language: system
stages:
- commit
types:
- python
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.3.0
hooks:
- id: commitlint
verbose: true
name: Commit Linter
additional_dependencies:
- "@commitlint/config-conventional"
stages:
- commit-msg