-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (33 loc) · 799 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
# Makefile
SHELL = /bin/bash
VENV := pypdf
.PHONY: help style clean conda venv
# Help
help:
@echo "Commands:"
@echo "clean : cleans all unnecessary files."
@echo "style : executes style formatting."
@echo "conda : creates a conda environment."
@echo "venv : creates a virtual environment."
# Style
.PHONY: style
style:
-autoflake --remove-all-unused-imports --in-place --recursive .
-autopep8 --in-place --recursive .
-black .
-flake8
-isort .
-yapf -i -r .
# Clean
.PHONY: clean
clean: style
bash scripts/clean.sh
# Conda Environment
conda:
conda create -n $(VENV) python=3.9 -y
conda activate $(VENV) && pip install -r requirements.txt
# Python Virtual Environment
venv:
python -m venv $(VENV)
source venv/bin/activate
pip install -r requirements.txt