-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
Copy pathMakefile
34 lines (22 loc) · 775 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
PROJECT_NAME = ModSimPy
PYTHON_VERSION = 3.10
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 chap*.ipynb
# many of the examples don't pass tests without the solutions
# cd examples; pytest --nbmake *.ipynb