website/justfile
Jake Howard 856079c118
Don't explicitly list python directories
This means as others are added, they'll be automatically linted
2022-07-29 08:46:44 +01:00

42 lines
613 B
Makefile

set dotenv-load
DEV_COMPOSE := justfile_directory() + "/docker/dev/docker-compose.yml"
# Recipes
@default:
just --list
@build:
docker-compose -f {{ DEV_COMPOSE }} pull
docker-compose -f {{ DEV_COMPOSE }} build
@compose +ARGS:
docker-compose -f {{ DEV_COMPOSE }} {{ ARGS }}
@start:
honcho start
@manage +ARGS:
./manage.py {{ ARGS }}
@pip +ARGS:
pip {{ ARGS }}
test *ARGS:
./manage.py test {{ ARGS }}
format:
black .
isort .
npm run format
lint: lint_python lint_node
lint_python:
black --check .
isort --check .
flake8
mypy . --show-error-codes
@lint_node:
npm run lint