-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (21 loc) · 702 Bytes
/
Makefile
File metadata and controls
28 lines (21 loc) · 702 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
PROJECT_NAME = ThinkComplexity
PYTHON_VERSION = 3.10
PYTHON_INTERPRETER = python
create_environment:
conda create --name $(PROJECT_NAME) python=$(PYTHON_VERSION) -y
@echo ">>> conda env created. Activate with:\nconda activate $(PROJECT_NAME)"
delete_environment:
conda env remove --name $(PROJECT_NAME)
requirements:
$(PYTHON_INTERPRETER) -m pip install -U pip setuptools wheel
$(PYTHON_INTERPRETER) -m pip install -r requirements.txt
clean:
find . -type f -name "*.py[co]" -delete
find . -type d -name "__pycache__" -delete
lint:
flake8 code
black --check --config pyproject.toml code
format:
black --config pyproject.toml code
tests:
cd soln; pytest --nbmake app*.ipynb chap*.ipynb