forked from AllenDowney/ModSimPy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (20 loc) · 672 Bytes
/
Makefile
File metadata and controls
32 lines (20 loc) · 672 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
PROJECT_NAME = ModSimPy
PYTHON_VERSION = 3.8
PYTHON_INTERPRETER = python
create_environment:
conda create -y --name $(PROJECT_NAME) python=$(PYTHON_VERSION)
@echo ">>> conda env created. Activate with:\nconda activate $(PROJECT_NAME)"
requirements:
$(PYTHON_INTERPRETER) -m pip install -U pip setuptools wheel
$(PYTHON_INTERPRETER) -m pip install -r requirements-dev.txt
lint:
flake8 pacs
black --check --config pyproject.toml pacs
format:
black --config pyproject.toml pacs
## Delete all compiled Python files
clean:
find . -type f -name "*.py[co]" -delete
find . -type d -name "__pycache__" -delete
tests:
cd chapters; pytest --nbmake chap01.ipynb