.PHONY: quality style test

check_dirs := tests src benchmarks utils

# Check that source code meets quality standards

quality:
	ruff check $(check_dirs) setup.py  # linter
	ruff format --check $(check_dirs) setup.py # formatter

# Format source code automatically

style:
	ruff check --fix $(check_dirs) setup.py # linter
	ruff format $(check_dirs) setup.py # formatter

# Run tests for the library

test:
	python -m pytest -n auto --dist=loadfile -s -v ./tests/
