-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9cbc2cf
commit 809c26d
Showing
4 changed files
with
85 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-r requirements.txt | ||
|
||
# lint/format/types | ||
black==24.10.0 | ||
flake8==7.1.1 | ||
pytype==2024.10.11 | ||
# pre-commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
rasa-pro~=3.10.11 | ||
rasa-sdk~=3.10.1 # if you change this, make sure to change the Dockerfile to match | ||
# -r actions/requirements-actions.txt |