File size: 473 Bytes
abeebae
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.PHONY: quality style test

check_dirs := tests src benchmarks metrics 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/