forked from pymc-devs/pymc-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
46 lines (46 loc) · 1.47 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
repos:
- repo: https://github.com/psf/black
rev: 21.8b0
hooks:
- id: black-jupyter
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.1.0
hooks:
- id: nbqa-isort
additional_dependencies: [isort==5.6.4]
- id: nbqa-pyupgrade
additional_dependencies: [pyupgrade==2.7.4]
args: [--py37-plus]
- repo: https://github.com/MarcoGorelli/check-execution-order
rev: v0.1.1
hooks:
- id: check-execution-order
exclude: |
(?x)^
^examples/samplers/DEMetropolisZ_EfficiencyComparison\.ipynb$
|examples/variational_inference/convolutional_vae_keras_advi\.ipynb$
|examples/pymc3_howto/sampling_callback\.ipynb$
|examples/gaussian_processes/GP-Latent\.ipynb$
- repo: local
hooks:
- id: watermark
args: [--negate, --multiline]
entry: '%load_ext watermark.*%watermark -n -u -v -iv -w'
language: pygrep
minimum_pre_commit_version: 2.8.0
name: Check notebooks have watermark (see Jupyter style guide from PyMC3 Wiki)
types: [jupyter]
- id: check-toc
entry: python scripts/check_toc_is_complete.py
language: python
name: Check all notebooks appear in table of contents
types: [jupyter]
- id: add-tags
entry: python scripts/add_tags.py
language: python
name: Add PyMC3 classes used to tags
types: [jupyter]
additional_dependencies:
- nbqa==1.1.1
- beautifulsoup4==4.9.3
- myst_parser==0.13.7