-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
63 lines (43 loc) · 1.1 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
.PHONY: install virtualenv ipython clean test pflake8 fmt lint watch docs docs-serve build
install:
@echo "Installing for dev environment"
@.venv/bin/python -m pip install -e '.[test,dev]'
virtualenv:
@python -m venv .venv
ipython:
@.venv/bin/ipython
lint:
#@.venv/bin/mypy --ignore-missing-imports dundie
@.venv/bin/pflake8
fmt:
@.venv/bin/isort --profile=black -m 3 dundie tests integration
@.venv/bin/black dundie tests integration
test:
@.venv/bin/pytest -s --forked
watch:
# @.venv/bin/ptw
@ls **/*.py | entr pytest --forked
clean: ## Clean unused files.
@find ./ -name '*.pyc' -exec rm -f {} \;
@find ./ -name '__pycache__' -exec rm -rf {} \;
@find ./ -name 'Thumbs.db' -exec rm -f {} \;
@find ./ -name '*~' -exec rm -f {} \;
@rm -rf .cache
@rm -rf .pytest_cache
@rm -rf .mypy_cache
@rm -rf build
@rm -rf dist
@rm -rf *.egg-info
@rm -rf htmlcov
@rm -rf .tox/
@rm -rf docs/_build
docs:
@mkdocs build --clean
docs-serve:
@mkdocs serve
build:
@python setup.py sdist bdist_wheel
publish-test:
@twine upload --repository testpypi dist/*
publish:
@twine upload dist/*