version: '3'
tasks:
be.bootstrap:
internal: true
cmds:
- . script/bootstrap
dir: backend
be.lint:
desc: "Lints /backend using black + pylint."
deps: [be.bootstrap]
- black . --check
- pylint
be.lintfix:
desc: "Lints and fixes /backend using black + pylint."
- black .
- pylint rotini
be.start:
desc: "Starts the backend application."
- source ../.venv/bin/activate && source ../.env && python -m uvicorn main:app
dir: backend/rotini
be.migrate:
desc: "Applies migrations. Usage: be.migrate -- <up|down>"
- source ../../.venv/bin/activate && source ../../.env && python migrate.py {{.CLI_ARGS}}
dir: backend/rotini/migrations
be.lock-deps:
desc: "Locks production and development dependencies"
- source .venv/bin/activate && . script/requirements-lock
fe.bootstrap:
dir: frontend
fe.start:
desc: "Starts the frontend application."
deps: [fe.bootstrap]
- yarn start
fe.test:
desc: "Runs the frontend test suite."
- yarn test