-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
49 lines (38 loc) · 1017 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
41
42
43
44
45
46
47
48
49
venv:
# create a virtual environment
conda create -n data-privacy-env python=3.9 anaconda
activate:
# activate venv run this manually
conda activate data-privacy-env
deactivate:
# deactivate venv run this manually
conda deactivate
install:
# install commands
conda update -n base -c defaults conda &&\
conda install matplotlib numpy
export:
# export virtual environment
conda env export > environment.yml
start-venv:
# if the environment.yml is available
conda env create --file environment.yml --prefix ./venv --quiet
docstring:
# format docstring
pyment -w -o numpydoc *.py
format:
#format code
black *.py utils/*.py testing/*.py
lint:
#flake8 or #pylint
pylint --disable=R,C --errors-only *.py utils/*.py testing/*.py
test:
#test
python -m pytest testing/*.py
build:
# build the container: More important for the CI/CD
sudo docker build -t data-privacy-env:v1 .
run:
# run the container
sudo docker run -p 8888:8888 data-privacy-env:v1
all: venv activate install build run