forked from RasaHQ/rasa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (35 loc) · 955 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
.PHONY: clean test lint init check-readme
TEST_PATH=./
help:
@echo " clean"
@echo " Remove python artifacts and build artifacts."
@echo " lint"
@echo " Check style with flake8."
@echo " test"
@echo " Run py.test"
@echo " check-readme"
@echo " Check if the readme can be converted from md to rst for pypi"
@echo " init"
@echo " Install Rasa Core"
init:
pip install -r requirements.txt
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
rm -rf docs/_build
lint:
black .
test: clean
py.test tests --verbose --color=yes $(TEST_PATH)
black --check .
doctest: clean
cd docs && make doctest
livedocs:
cd docs && make livehtml
check-readme:
# if this runs through we can be sure the readme is properly shown on pypi
python setup.py check --restructuredtext --strict