-
Notifications
You must be signed in to change notification settings - Fork 59
/
Makefile
40 lines (30 loc) · 914 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
# locate all the files in this directory or below:
FILES=`find . -name '*.py'`
# The command for running mypy:
lint:
python3 -m mypy $(FILES)
requirements:
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install -r requirements-full.txt
mkdocs:
mkdocs build --clean
mkdocs serve -a localhost:8080
precommit:
tox
clean-build:
rm -rf kgtk*.egg-info
python setup.py clean --all
update-version:
python3 kgtk/utils/updateversion.py --show-changes=True $(FILES)
unittest:
cd tests && python3 -m unittest discover --verbose
coverage:
cd kgtk/tests && coverage run --source=kgtk -m unittest discover --verbose
download-spacy-model:
python3 -m spacy download en_core_web_sm
update-documents:
for name in docs/*/*.md; do \
echo python kgtk/utils/update_documentation.py --md $${name} --summary; \
python kgtk/utils/update_documentation.py --md $${name} --summary; \
done