forked from mlflow/mlflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
37 lines (34 loc) · 952 Bytes
/
.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
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: 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]