summaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
authorWolfgang Müller2024-03-05 18:08:09 +0100
committerWolfgang Müller2024-03-05 19:25:59 +0100
commitd1d654ebac2d51e3841675faeb56480e440f622f (patch)
tree56ef123c1a15a10dfd90836e4038e27efde950c6 /scripts
downloadhircine-0.1.0.tar.gz
Initial commit0.1.0
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 .