-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
19 lines (17 loc) · 750 Bytes
/
Makefile
File metadata and controls
19 lines (17 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Python executable name
# Set to whatever version of Python you use
# Anything >= python3.7 should be fine
PYTHON ?= python3
# Style
# reformat: # Project-wide reformat
# $(PYTHON) -m black -l 99 --target-version py37 `git ls-files "*.py"`
# stylecheck: # Check if any files would be reformatted by `make reformat`
# $(PYTHON) -m black --check -l 99 --target-version py37 `git ls-files "*.py"`
# Management of virtual environment
VENV_PATH ?= .venv
_newenv:
$(PYTHON) -m venv --clear $(VENV_PATH)
$(VENV_PATH)/bin/pip install -U pip setuptools
newenv: _newenv syncenv # Set up a fresh Python 3.7 virtual environment
syncenv: # Install requirements to virtual environment
$(VENV_PATH)/bin/python -m pip install --upgrade --editable .[dev]