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
|
|
|
|
|
|
|
|
# create hatch envs
|
|
|
|
env:
|
|
|
|
#!/usr/bin/env fish
|
|
|
|
for env in (hatch env show --json | jq 'keys[]' --raw-output)
|
|
|
|
hatch env create $env
|
|
|
|
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
|