forked from exoplanet-dev/exoplanet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
42 lines (38 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
38
39
40
41
42
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
exclude: src/exoplanet/theano_ops/lib/vendor
exclude: docs/tutorials
- id: end-of-file-fixer
exclude: src/exoplanet/theano_ops/lib/vendor
exclude_types: [json]
exclude: docs/tutorials
- id: debug-statements
exclude: src/exoplanet/theano_ops/lib/vendor
exclude: docs/tutorials
- repo: https://github.com/PyCQA/isort
rev: "5.13.2"
hooks:
- id: isort
args: []
additional_dependencies: [toml]
exclude: docs/tutorials
- repo: https://github.com/psf/black
rev: "24.3.0"
hooks:
- id: black
- repo: https://github.com/dfm/black_nbconvert
rev: v0.4.0
hooks:
- id: black_nbconvert
- repo: https://github.com/mwouts/jupytext
rev: v1.15.2
hooks:
- id: jupytext
files: |
(?x)^(docs/tutorials/.*\.md)$
args: [--pipe, black]
additional_dependencies:
- black