-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
59 lines (49 loc) · 927 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.DEFAULT_GOAL := all
black = black pbatch tests
flake8 = flake8 pbatch tests
isort = isort pbatch tests
mypy = mypy pbatch
install-pip = python -m pip install -U setuptools pip wheel
test = pytest --cov=pbatch --cov-report term-missing tests/
.PHONY: install
install:
$(install-pip)
pip install -e .
.PHONY: install-dev
install-dev:
$(install-pip)
pip install -e ".[dev]"
.PHONY: format
format:
$(isort)
$(black)
.PHONY: check
check:
$(isort) --check-only --df
$(black) --check --diff
$(flake8)
$(mypy)
.PHONY: test
test:
$(test)
.PHONY: test-fast
test-fast:
$(test) -m "not performance"
.PHONY: coverage
coverage:
coverage xml
.PHONY: build
build:
python setup.py sdist bdist_wheel
twine check dist/*
.PHONY: clean
clean:
rm -rf `find . -name __pycache__`
rm -rf .pytest_cache
rm -rf .mypy_cache
rm -rf build
rm -rf dist
rm -rf *.egg-info
rm -f .coverage
rm -f .coverage.*
rm -f coverage.xml