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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
test: lint documentation examples pytest
pytest: clean
uv run pytest --cov -v
documentation: sphinx
sphinx:
cd docs; uv run make -s html > /dev/null
examples: clean g2e_test calc_test
g2e_test:
cd examples/g2e; uv run make -s clean test > /dev/null
cd examples/g2e; uv run make -s clean > /dev/null
calc_test:
cd examples/calc; uv run make -s clean test > /dev/null
lint: ruff ty mypy
ruff:
uv run ruff check -q --preview --fix tatsu tests examples
mypy:
uv run mypy --install-types --exclude dist --exclude parsers .
ty:
uv run ty check --exclude parsers
clean:
find . -name "__pycache__" -delete
rm -rf tatsu.egg-info dist build .tox
checks: clean documentation
uv run hatch run --force-continue test:checks
@echo version `uv run python -m tatsu --version`
build: clean
uv run hatch build
test_publish: build
uv run hatch publish --repo test
publish: checks build
uv run hatch publish
|