-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.pre-commit-config.yaml
100 lines (100 loc) · 2.72 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
repos:
- repo: local
hooks:
- id: black
name: black
entry: black
language: system
types: [python, jupyter]
require_serial: true
- id: check-added-large-files
name: Check for added large files
entry: check-added-large-files
language: system
exclude: docs/_static/images/hero_image.png
- id: check-toml
name: Check Toml
entry: check-toml
language: system
types: [toml]
- id: check-yaml
name: Check Yaml
entry: check-yaml
language: system
types: [yaml]
- id: darglint
name: darglint
entry: darglint
language: system
types: [python]
stages: [manual]
- id: end-of-file-fixer
name: Fix End of Files
entry: end-of-file-fixer
language: system
types: [text]
stages: [commit, push, manual]
- id: flake8
name: flake8
entry: flake8
language: system
types: [python]
require_serial: true
args: [--darglint-ignore-regex, .*]
- id: autoflake
name: autoflake
entry: autoflake
language: system
types: [python]
require_serial: true
args: ["--in-place", "--remove-all-unused-imports"]
- id: interrogate
name: interrogate
entry: interrogate
language: system
types: [python]
- id: isort
name: isort
entry: isort
require_serial: true
language: system
types_or: [cython, pyi, python]
args: ["--filter-files"]
- id: nbqa-flake8
name: nbqa-flake8
entry: nbqa flake8
language: system
require_serial: true
types: [jupyter]
- id: nbqa-pyupgrade
name: nbqa-pyupgrade
entry: nbqa pyupgrade
language: system
require_serial: true
types: [jupyter]
- id: nbqa-isort
name: nbqa-isort
entry: nbqa isort
language: system
require_serial: true
types: [jupyter]
args: [--project=model, --project=plots]
- id: pyupgrade
name: pyupgrade
description: Automatically upgrade syntax for newer versions.
entry: pyupgrade
language: system
types: [python]
args: [--py38-plus]
- id: trailing-whitespace
name: Trim Trailing Whitespace
entry: trailing-whitespace-fixer
language: system
types: [text]
stages: [commit, push, manual]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.3.0
hooks:
- id: prettier
exclude: "docs/_static/generated_html/.*vega.html"
exclude: "^tests/unit/expected_outputs"