roll/justfile

34 lines
580 B
Plaintext
Raw Permalink Normal View History

2023-08-13 21:50:40 +00:00
set shell := ["fish", "-c"]
2023-08-13 16:59:32 +00:00
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
2023-08-13 21:50:40 +00:00
@echo
@echo (set_color green)"all good ᕕ( ᐛ )ᕗ"(set_color normal)
2023-08-13 16:59:32 +00:00
# create hatch envs
env:
2023-08-13 21:50:40 +00:00
for env in (hatch env show --json | jq 'keys[]' --raw-output); \
hatch env create $env; \
2023-08-13 16:59:32 +00:00
end
clean:
hatch clean
2023-08-13 20:46:26 +00:00
hatch env prune
-rm -r .{mypy,pytest,ruff}_cache
-rm -r dist
-rm .coverage
2023-08-13 16:59:32 +00:00
fd __pycache__ --no-ignore --exec rm -r