-
Notifications
You must be signed in to change notification settings - Fork 152
/
Makefile
54 lines (45 loc) · 1.2 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
help:
@echo "make"
@echo " clean"
@echo " Remove Python/build artifacts."
@echo " formatter"
@echo " Apply black formatting to code."
@echo " lint"
@echo " Lint code with flake8, and check if black formatter should be applied."
@echo " types"
@echo " Check for type errors using pytype."
@echo " validate"
@echo " Runs the rasa data validate to verify data."
@echo " test"
@echo " Runs the rasa test suite checking for issues."
@echo " crossval"
@echo " Runs the rasa cross validation tests and creates results.md"
@echo " shell"
@echo " Runs the rasa train and rasa shell for testing"
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
rm -rf build/
rm -rf .pytype/
rm -rf dist/
rm -rf docs/_build
formatter:
black actions --line-length 79
lint:
flake8 actions
black --check actions
types:
pytype --keep-going actions
validate:
rasa train
rasa data validate --debug
test:
rasa train
rasa test --fail-on-prediction-errors
crossval:
rasa test nlu -f 5 --cross-validation
python format_results.py
shell:
rasa train --debug
rasa shell --debug