roll/justfile

34 lines
580 B
Plaintext

set shell := ["fish", "-c"]
build:
hatch build
typing:
hatch run typing:check
lint:
hatch run lint:check
fmt:
hatch run lint:fmt
# run all checks
test: typing lint
hatch run check
@echo
@echo (set_color green)"all good ᕕ( ᐛ )ᕗ"(set_color normal)
# create hatch envs
env:
for env in (hatch env show --json | jq 'keys[]' --raw-output); \
hatch env create $env; \
end
clean:
hatch clean
hatch env prune
-rm -r .{mypy,pytest,ruff}_cache
-rm -r dist
-rm .coverage
fd __pycache__ --no-ignore --exec rm -r