-
Notifications
You must be signed in to change notification settings - Fork 110
/
Copy pathMakefile
55 lines (49 loc) · 1.36 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
.PHONY: install
install:
pip install rasa-x --extra-index-url https://pypi.rasa.com/simple
pip install -r ./requirements.txt
.PHONY: smoke_test
smoke_test: clean_models
(cd Chapter02 && rasa train)
(cd Chapter03 && rasa train)
(cd Chapter04 && rasa train)
(cd Chapter05 && rasa train)
(cd Chapter06 && rasa train)
(cd Chapter07 && rasa train)
(cd Chapter08 && rasa train)
(cd Chapter09 && rasa train)
$(MAKE) clean_models
.PHONY: clean_models
clean_models:
(cd Chapter02 && rm -rf models .rasa)
(cd Chapter03 && rm -rf models .rasa)
(cd Chapter04 && rm -rf models .rasa)
(cd Chapter05 && rm -rf models .rasa)
(cd Chapter06 && rm -rf models .rasa)
(cd Chapter07 && rm -rf models .rasa)
(cd Chapter08 && rm -rf models .rasa)
(cd Chapter09 && rm -rf models .rasa)
.PHONY: clean
clean:
# remove Python file artifacts
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
# remove test and coverage artifacts
rm -fr .tox/
rm -f .coverage
rm -fr htmlcov/
rm -fr .pytest_cache
.PHONY: dev
dev:
npm install -g markdownlint-cli
pip install black
pip install flake8
npm i -g @lint-md/cli
.PHONY: dev_check
dev_check:
flake8 --ignore=E501 Chapter0*
black --check Chapter0*
markdownlint --disable MD013 MD034 MD024 -- README.md **/README.md
lint-md -f */README.md