forked from mlflow/mlflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
44 lines (40 loc) · 1.1 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
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: black
name: black
entry: black
language: system
types: [python]
stages: [commit]
log_file: .black.log
- 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: 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]