-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
32 lines (23 loc) · 905 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.PHONY: quality style test test-examples
# Check that source code meets quality standards
quality:
black --check --line-length 119 --target-version py35 examples templates tests src utils
isort --check-only --recursive examples templates tests src utils
flake8 examples templates tests src utils
# Format source code automatically
style:
black --line-length 119 --target-version py35 examples templates tests src utils
isort --recursive examples templates tests src utils
# Run tests for the library
test:
python -m pytest -n auto --dist=loadfile -s -v ./tests/
test-reduced:
python -m pytest -n auto --dist=loadfile -s -v\
--ignore-glob='tests/test_tokenization*'\
--ignore-glob='tests/test_pipelines*'\
--ignore-glob='tests/test_hf*'\
--ignore-glob='tests/test_doc*'\
./tests/
# Run tests for examples
test-examples:
python -m pytest -n auto --dist=loadfile -s -v ./examples/