This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
rotini/Taskfile.yml
Marc Cataford bf7431f747
feat(backend): sub fetch endpoints (#2)
* feat(backend): sub fetch endpoints

* ci: skip frontend/backend if no frontend change

* ci: backend formatting

* build: tooling and commands

* build: psycopg2

* build: dependency locking tooling

* build: pylint

* feat: migration handling

* feat: rudimentary upload flow

* feat: basic file create/read interactions

* docs: stubs

* build: migration command
2023-08-08 23:49:54 -04:00

52 lines
1.2 KiB
YAML

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