.PHONY: mypy fmt lint test clean build sloc

mypy:
	mypy eduvpn tests

fmt:
	ruff format eduvpn tests

lint:
	ruff check eduvpn tests
	ruff format --check eduvpn tests

test:
	pytest tests

clean:
	rm -rf build dist .eggs eduvpn_client.egg-info .pytest_cache tests/__pycache__/
	find  . -name *.pyc -delete
	find  . -name __pycache__ -delete

build:
	rm -rf build
	rm -rf dist
	python3 -m build --sdist --wheel .

sloc:
	tokei -t=Python eduvpn || cloc --include-ext=py eduvpn
