-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
33 lines (24 loc) · 843 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
set dotenv-load
version := `uv run python -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])'`
clean:
rm -rf .pytest_cache .mypy_cache .ruff_cache .coverage dist build src/*.egg-info
build: clean lint audit test
uvx --from build pyproject-build --installer uv
format:
uv run ruff check --select I --fix src tests
uv run ruff format src tests
test:
uv run coverage run -m pytest -n auto tests
lint: format
uv run ruff check src tests
uv run mypy src
audit:
uv run pip-audit --ignore-vuln GHSA-f9vj-2wh5-fj8j --ignore-vuln GHSA-q34m-jh98-gwm2
uv run bandit -r -c "pyproject.toml" src
publish: build
git diff-index --quiet HEAD
uvx twine upload dist/**
git tag -a 'v{{version}}' -m 'v{{version}}'
git push origin v{{version}}
sync:
uv sync