From cfa967abf77f61f180ca548462799ecf43c267f5 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Mon, 26 Jun 2023 07:50:06 -0700 Subject: [PATCH] Configure just for this project --- Justfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Justfile diff --git a/Justfile b/Justfile new file mode 100644 index 0000000..b961b74 --- /dev/null +++ b/Justfile @@ -0,0 +1,23 @@ +# Run tests and linters +@default: test lint + +# Run pytest with supplied options +@test *options: + pipenv run pytest {{options}} + +# Run linters +@lint: + pipenv run black . --check + pipenv run cog --check README.md docs/*.md + +# Rebuild docs with cog +@cog: + pipenv run cog -r docs/*.md + +# Serve live docs on localhost:8000 +@docs: cog + cd docs && pipenv run make livehtml + +# Apply Black +@black: + pipenv run black .