Makefile 632 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
.PHONY: quality style test test-examples

# Check that source code meets quality standards

quality:
	black --check --line-length 119 examples templates tests src utils
	isort --check-only --recursive examples templates tests src utils
	flake8 examples templates tests src utils

# Format source code automatically
11
12

style:
13
14
	black --line-length 119 examples templates tests src utils
	isort --recursive examples templates tests src utils
15
16
17
18
19
20
21
22
23
24

# Run tests for the library

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

# Run tests for examples

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