"test/srt/test_mla.py" did not exist on "54fb1c80c0d7bbf100d4efc84d1aad4bee094ff0"
Makefile 919 Bytes
Newer Older
1
.PHONY: quality style test test-examples docs
2
3
4
5

# Check that source code meets quality standards

quality:
6
	black --check --line-length 119 --target-version py35 examples templates tests src utils
7
	isort --check-only examples templates tests src utils
8
	flake8 examples templates tests src utils
9
	python utils/check_copies.py
10
	python utils/check_repo.py
11
12

# Format source code automatically
13
14

style:
15
	black --line-length 119 --target-version py35 examples templates tests src utils
16
	isort examples templates tests src utils
17

18
19
20
21
22
# Make marked copies of snippets of codes conform to the original

fix-copies:
	python utils/check_copies.py --fix_and_overwrite

23
24
25
26
27
28
29
30
31
# 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/
32
33
34
35
36

# Check that docs can build

docs:
	cd docs && make html SPHINXOPTS="-W"