Mainly for shorthand control, like creating virtual envs, installing requirements, migrations etc:
git clone [email protected]:stribny/sidewinder.git
cd sidewinder
make
#!make
# Make sure you have .env file in root directory
include .env
export
all: install lint run
shell:
poetry shell
install:
#poetry lock
poetry install --with dev,test,docs --no-root
poetry run pre-commit install
migrate:
poetry run python manage.py migrate
run:
poetry run python manage.py runserver
lint:
poetry run black .
poetry run isort .
test:
poetry run pytest -s
docs:
poetry run mkdocs serve
clean:
rm -rf .pytest_cache
rm -rf poetry.lock
find . -type f -name '*.pyc' -delete
.PHONY: all lint test clean docs