-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (31 loc) · 1.06 KB
/
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
MYPYPATH=./mypy
bench:
@pipenv run pytest --benchmark-columns="min, median, max, stddev" -v ./benches
build:
@pipenv run python setup.py sdist bdist_wheel
clean:
@find . | grep -E "(.benchmarks)" | xargs rm -rf
@find . | grep -E "(.cache)" | xargs rm -rf
@find . | grep -E "(.mypy_cache)" | xargs rm -rf
@find . | grep -E "(.pytest_cache)" | xargs rm -rf
@find . | grep -E "(__pycache__)" | xargs rm -rf
@find . | grep -E "(build)" | xargs rm -rf
@find . | grep -E "(dist)" | xargs rm -rf
@find . | grep -E "(\.pyc|\.so|\.egg-info)" | xargs rm -rf
document:
@pipenv run pdoc --html --force\
--template-dir ./docs/config\
--output-dir ./docs\
./atompack
format:
@pipenv run isort ./atompack ./benches ./tests
@pipenv run yapf -rip --style='{based_on_style: google, column_limit: 120}' ./
lint:
@export MYPYPATH=$(MYPYPATH);\
pipenv run mypy --config-file=$(MYPYPATH)/mypy.ini ./atompack
@pipenv run pyflakes ./atompack
publish:
@pipenv run twine check dist/*
@pipenv run twine upload dist/*
test:
@pipenv run pytest --doctest-modules -v ./atompack ./tests