forked from huggingface/datasets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
19 lines (13 loc) · 605 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.PHONY: quality style test test-examples
# Check that source code meets quality standards
quality:
black --check --line-length 119 --target-version py36 tests src benchmarks datasets/**/*.py metrics
isort --check-only tests src benchmarks datasets/**/*.py metrics
flake8 tests src benchmarks datasets/**/*.py metrics
# Format source code automatically
style:
black --line-length 119 --target-version py36 tests src benchmarks datasets/**/*.py metrics
isort tests src benchmarks datasets/**/*.py metrics
# Run tests for the library
test:
python -m pytest -n auto --dist=loadfile -s -v ./tests/