summaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/dev.sh8
-rw-r--r--scripts/lint.sh4
2 files changed, 12 insertions, 0 deletions
diff --git a/scripts/dev.sh b/scripts/dev.sh
new file mode 100644
index 0000000..be7121c
--- /dev/null
+++ b/scripts/dev.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+export HIRCINE_DEV=1
+
+tmux new-session -ds hircine -n uvicorn -- '(cd instance/ && poetry run python -m hircine.app)'
+tmux new-window -t hircine: -n lint -- 'fd . -epy src/ tests/ | entr -c sh scripts/lint.sh'
+tmux new-window -t hircine: -n docs -- 'fd . -erst -epy docs/ | entr -c make docs'
+tmux attach-session -t hircine
diff --git a/scripts/lint.sh b/scripts/lint.sh
new file mode 100644
index 0000000..24289b0
--- /dev/null
+++ b/scripts/lint.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+poetry run ruff check --fix --show-fixes .
+poetry run black --quiet .