NAME = $(shell basename $(CURDIR))
PYNAME = $(subst -,_,$(NAME))

check:
	ruff .
	flake8 */*.py
	mypy */*.py
	pyright */*.py
	vermin -vv --exclude importlib.resources.files --no-tips -i */*.py */*/*.py

build:
	rm -rf dist
	python3 -m build

upload: build
	twine3 upload dist/*

doc:
	update-readme-usage

clean:
	@rm -vrf *.egg-info */*.egg-info .venv/ build/ dist/ __pycache__/ \
          */__pycache__ */*/__pycache__
