.PHONY: quality style test

check_dirs := ./

# Check that source code meets quality standards

quality:
	black --check --line-length 88 $(check_dirs)
	isort --check-only $(check_dirs)
	flake8 $(check_dirs) --max-line-length 88
	mdformat --check $(check_dirs)

# Format source code automatically
style:
	black --line-length 88 $(check_dirs)
	isort $(check_dirs)
	mdformat $(check_dirs)

# Run python unittests
test:
	python -m pytest ./test
