forked from RasaHQ/rasa-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (32 loc) · 829 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
.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 " init"
@echo " Install Rasa SDK dependencies"
@echo " release"
@echo " Prepare a new release"
install:
poetry install
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
types:
poetry run pytype --keep-going rasa_sdk
lint:
poetry run flake8 rasa_sdk tests
poetry run black --check rasa_sdk tests
test: clean
poetry run py.test tests --cov rasa_sdk -v
release:
poetry run python scripts/release.py