lint:
	# stop the build if there are Python syntax errors or undefined names
	ruff check --output-format=github --select=E9,F63,F7,F82 --target-version=py37 .
	# Keep the original Ruff rule set explicit so upgrades do not expand CI checks.
	ruff check --output-format=github --select=E4,E7,E9,F --target-version=py37 .

ut:
	# make sure the test file name starts with test_ and the test function also start with test_
	# and if you want to add doctest into ut, just add the flag --doctest-modules
	# Only collect tests from project directories, ignore virtual environments
	py.test -v --junitxml=./test-results.xml --cov=./ --cov-report=xml --cov-report=html \
		--ignore=.venv --ignore=venv --ignore=env --ignore=build --ignore=dist --ignore=slowquery \
		test/ o11ydiagnosis/ tests/
