-
Notifications
You must be signed in to change notification settings - Fork 5
/
Justfile
33 lines (24 loc) · 800 Bytes
/
Justfile
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
33
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
generate-migration *args:
poetry run alembic --config migrations/alembic.ini revision --autogenerate {{ args }}
setup:
poetry install
lint:
poetry run ruff check ./hetznerbot --output-format=full
poetry run ruff format ./hetznerbot --diff
format:
poetry run ruff check --fix ./hetznerbot
poetry run ruff format ./hetznerbot
import_cpu_data:
poetry run python ./main.py import-cpu-data
# Watch for something
# E.g. `just watch lint` or `just watch test`
watch *args:
watchexec --clear 'just {{ args }}'