-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
43 lines (43 loc) · 1.2 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
# pre-commit install
repos:
- repo: https://github.com/python-poetry/poetry
rev: "1.7.0" # add version here
hooks:
- id: poetry-check
- id: poetry-lock
- repo: local
hooks:
- id: nbdev_clean
name: nbdev_clean
entry: nbdev_clean --clear_all
description: "Clean metadata from notebooks to avoid merge conflicts"
language: python
always_run: true
pass_filenames: false
- id: nbdev_test
name: nbdev_test
entry: nbdev_test
description: "Run tests in notebooks"
language: python
always_run: true
pass_filenames: false
- id: nbdev_export
language: python
always_run: true
pass_filenames: false
name: nbdev_export
entry: nbdev_export --procs black_format scrub_magics
description: "Export notebooks to modules and build modidx"
- id: mypy-sal
name: mypy
entry: mypy -p sal
language: system
types: [python]
pass_filenames: false
always_run: true
- id: ruff
name: ruff
entry: ruff check
language: system
types: [python]
exclude: ^(sal\/_modidx\.py)$