forked from cltk/cltkv1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (35 loc) · 1.19 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
build:
poetry build
develop:
python setup.py sdist develop
docs:
poetry run sphinx-apidoc -f -o docs src/cltkv1 && cd docs && poetry run make html && cd ..
format:
isort --recursive . && poetry run black src/cltkv1 tests docs scripts
install:
# Equivalent of ``python setup.py install``
poetry install
installPyPITest:
pip install --index-url https://test.pypi.org/simple/ cltk
lint:
mkdir -p pylint && poetry run pylint --output-format=json cltkv1 > pylint/pylint.json || true && poetry run pylint-json2html pylint/pylint.json 1> pylint/pylint.html
preCommitRun:
poetry run pre-commit autoupdate && poetry run pre-commit install && poetry run pre-commit autoupdate
shell:
# TODO: start w/ option ``doctest_mode``
poetry run ipython --automagic
test:
poetry run tox
typing:
poetry run mypy --html-report .mypy_cache src/cltkv1
updateDependencies:
# Equivalent of ``pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U``
poetry update
uml:
cd docs/ && poetry run pyreverse -o png ../src/cltkv1/ && cd ../
upload:
poetry publish
uploadTest:
poetry publish --repository=testpypi
all: black lint typing test check uml docs
.PHONY: build docs