-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
43 lines (43 loc) · 1.33 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
fail_fast: true
minimum_pre_commit_version: '1.16.1'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.1
hooks:
- id: check-added-large-files
args: ['--maxkb=400']
exclude: \.ipynb$
- id: check-ast
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: debug-statements
- id: fix-encoding-pragma
- id: trailing-whitespace
- repo: local
hooks:
- id: jupyter-clean
name: jupyter-clean
entry: clean_ipynb --no-py --keep-output
language: system
files: \.ipynb$
- id: init-clean
name: init-clean
entry: clean_ipynb --no-autoflake
language: system
files: __init__\.py$
- id: python-clean
name: python-clean
entry: clean_ipynb --no-ipynb
language: system
files: \.py$
exclude: __init__\.py$
- id: pytest
name: pytest
entry: pytest -m "not slow" --ignore-glob='joblib/**/func_code.py'
pass_filenames: false
language: system
verbose: true