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
|
version := `python3 -c "from src.meshplex.__about__ import __version__; print(__version__)"`
default:
@echo "\"just publish\"?"
publish:
@if [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then exit 1; fi
gh release create "v{{version}}"
flit publish
clean:
@find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
@rm -rf src/*.egg-info/ build/ dist/ .tox/
format:
isort .
black .
blacken-docs README.md
lint:
black --check .
flake8 .
doc:
sphinx-build -M html docs/ build/
|