-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
52 lines (46 loc) · 1.01 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
repos:
- repo: local
hooks:
- id: isort
name: Isort
stages: [commit]
language: system
entry: isort
types: [python]
- id: black
name: Black
stages: [commit]
language: system
entry: black
types: [python]
- id: flake8
name: Flake8
stages: [commit]
language: system
entry: flake8
types: [python]
- id: pylint
name: PyLint
stages: [commit]
language: system
entry: pylint --rcfile=.pylintrc
files: \.py$
- id: mypy
name: mypy
stages: [commit]
language: system
entry: mypy
files: \.py$
- id: jupyter-nb-clear-output
name: jupyter-nb-clear-output
files: \.ipynb$
stages: [commit]
language: system
entry: jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace
- id: doc-build
name: Build Documentation
stages: [push]
entry: sphinx-build -M html docs/source/ docs/build -W --keep-going
language: system
files: ^(docs/.*|cars_rasterize/.*)$
pass_filenames: False