unittest:
	pytest -v tests

unittest-c:
	rm -rf build/ && \
		mkdir build && \
		cd build && \
		cmake .. -DBUILD_PYTHON_MODULE=OFF -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Debug && \
		make -j && \
		./test

ruff:
	ruff format --check
	ruff check

toml-check:
	taplo format --check .

coverage:
	pytest --cov `cd tests && python -c "import os, movici_geo_query; print(os.path.dirname(movici_geo_query.__file__))"` --cov-report=term-missing --cov-report=xml

safety:
	safety check --full-report

pylint:
	pylint movici_geo_query --exit-zero -r n | tee pylint.txt

install:
	pip install -e .

install-dev:
	pip install -e .[dev]

test-all: unittest ruff toml-check coverage safety

level=patch
export level

bump-version:
	bumpversion  --config-file .bumpversion.app $(level)
