-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
38 lines (29 loc) · 832 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
.PHONY: all help install format lint strip_notebooks
all: install strip_notebooks format lint
help:
@echo "Usage: make <target>"
@echo ""
@echo "Targets:"
@echo " install Install package dependencies"
@echo " format Format code using black"
@echo " lint Lint code using pylint"
@echo " strip_notebooks Strip notebooks using nbstripout"
@echo " all Run all targets"
install:
@echo "Installing dependencies..."
pip install -r requirements.txt
format:
@echo "Formatting code..."
black .
nbqa black .
isort .
nbqa isort .
upgrade:
@echo "Upgrading code"
pyupgrade *.py
lint:
@echo "Linting code..."
pylint *.py --disable=C0114,C0115,C0116,R1725,C0103,W0621,W0603,R0914,E1101
strip_notebooks:
@echo "Stripping notebooks..."
nbstripout *.ipynb