-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (35 loc) · 722 Bytes
/
Makefile
File metadata and controls
45 lines (35 loc) · 722 Bytes
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
SHELL := /usr/bin/env bash
define USAGE
Targets
---------------
clean
setup_venv
format
lint
utest
notebook
endef
export USAGE
all:
@echo "$$USAGE"
clean:
rm -rf ./venv ./also/*.pyc ./also.egg-info
setup_venv: clean
python3 -m venv ./venv
source ./venv/bin/activate \
&& python3 --version \
&& pip3 install -e . \
&& pip3 install -r ./requirements-dev.txt
format:
source ./venv/bin/activate \
&& black ./also/ ./setup.py ./tests/
lint:
source ./venv/bin/activate \
&& pylint ./also/
utest:
source ./venv/bin/activate \
&& py.test ./tests/
notebook:
source ./venv/bin/activate \
&& pip3 install matplotlib \
&& jupyter notebook --NotebookApp.token='' --NotebookApp.password=''