From d1d654ebac2d51e3841675faeb56480e440f622f Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Tue, 5 Mar 2024 18:08:09 +0100 Subject: Initial commit --- scripts/dev.sh | 8 ++++++++ scripts/lint.sh | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 scripts/dev.sh create mode 100644 scripts/lint.sh (limited to 'scripts') 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 . -- cgit v1.2.3-2-gb3c3