forked from mlflow/mlflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
63 lines (56 loc) · 1.56 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
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.7.1"
hooks:
- id: prettier
files: '^(?!CHANGELOG.md|mlflow/pypi_package_index.json|docs/|mlflow/server/js/).+\.(js|md|json|ya?ml)$'
args: ["--no-config", "--print-width", "100"]
- repo: local
hooks:
- id: ruff
name: ruff
entry: python dev/ruff.py
language: system
types_or: [python, jupyter]
stages: [commit]
- id: black
name: black
entry: python dev/black.py
language: system
types_or: [python, jupyter]
stages: [commit]
- id: blacken-docs
name: blacken-docs
entry: blacken-docs
language: system
types_or: [python, rst, markdown]
stages: [commit]
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args: ["--rcfile=pylintrc"]
stages: [commit]
- id: disallow-rule-ids
name: disallow-rule-ids
entry: python ./dev/disallow_rule_ids.py
language: system
types: [python]
stages: [commit]
- id: rstcheck
name: rstcheck
entry: rstcheck
language: system
files: README.rst
stages: [commit]
- id: must-have-signoff
name: must-have-signoff
entry: 'grep "Signed-off-by:"'
language: system
stages: [prepare-commit-msg]
- id: mlflow-typo
name: mlflow-typo
entry: dev/mlflow-typo.sh
language: system
stages: [commit]