forked from Nukesor/ultimate-poll-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
32 lines (24 loc) · 700 Bytes
/
Justfile
File metadata and controls
32 lines (24 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
default: run
run:
poetry run python main.py run
initdb *args:
poetry run python main.py initdb {{ args }}
poetry run alembic --config migrations/alembic.ini stamp head
migrate:
poetry run alembic --config migrations/alembic.ini upgrade head
setup:
poetry install
test:
#/bin/bash
createdb pollbot_test || echo 'test database exists.'
poetry run pytest
lint:
poetry run ruff check ./pollbot --show-source
poetry run ruff format ./pollbot --diff
format:
poetry run ruff check --fix ./pollbot
poetry run ruff format ./pollbot
# Watch for something
# E.g. `just watch lint` or `just watch test`
watch *args:
watchexec --clear 'just {{ args }}'