website/justfile
2022-06-12 15:24:17 +01:00

38 lines
555 B
Makefile

set dotenv-load
# Load virtualenv
export PATH := justfile_directory() + "/env/bin:" + env_var('PATH')
# Dev environment
export DEBUG := "true"
export SECRET_KEY := "super-secret-key"
# Recipes
@default:
just --list
install:
python -m venv env
pip install -r dev-requirements.txt
@start:
honcho start
@manage +ARGS:
./manage.py {{ ARGS }}
@pip +ARGS:
pip {{ ARGS }}
test *ARGS:
./manage.py test {{ ARGS }}
format:
black website
isort website
lint:
black --check website
isort --check website
flake8 website
mypy website