-
Notifications
You must be signed in to change notification settings - Fork 115
/
Copy pathMakefile
40 lines (29 loc) · 835 Bytes
/
Makefile
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
black:
@black --version
@black elastica tests examples
black_check:
@black --version
@find . -maxdepth 3 -name '*.py'\
| while read -r src; do black --check "$$src"; done
isort:
@isort --version
@isort --recursive .
isort_check:
@isort --version
@isort --recursive --check-only
flake8:
@flake8 --version
@flake8 elastica tests examples
clean_notebooks:
# This finds Ipython jupyter notebooks in the code
# base and cleans only its output results. This
# results in
@jupyter nbconvert --version
@find . -maxdepth 3 -name '*.ipynb'\
| while read -r src; do jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace "$$src"; done
pylint:
@pylint --version
@find . -maxdepth 3 -name '*.py'\
| while read -r src; do pylint -rn "$$src"; done
all:black pylint flake8
ci:black_check flake8