diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..d969dab2 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +.DEFAULT_GOAL := help +.PHONY: test deps style lint install help + +help: + @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' + +target_dirs := tests TTS notebooks + +deps: ## install 🐸 requirements. + pip install -r requirements.txt + +test: ## run tests. + nosetests --with-cov -cov --cover-erase --cover-package TTS tests + +style: ## update code style. + black ${target_dirs} + isort ${target_dirs} + +lint: ## run pylint linter. + pylint ${target_dirs} + +install: ## install 🐸 TTS for development. + pip install -e . diff --git a/requirements.txt b/requirements.txt index c479da9b..7cb7a358 100644 --- a/requirements.txt +++ b/requirements.txt @@ -24,6 +24,7 @@ cython pyyaml # quality and style nose +coverage black isort pylint==2.7.4 \ No newline at end of file