API & Client: pre-commit lint

This commit is contained in:
SamR1
2018-01-14 20:49:35 +01:00
parent f9a1768e64
commit e1062a107c
17 changed files with 81 additions and 34 deletions

View File

@ -18,6 +18,14 @@ install-python:
test -d $(VENV) || virtualenv $(VENV) -p $(PYTHON_VERSION)
$(PIP) install -r $(REQUIREMENTS)
lint-all: lint-python lint-react
lint-python:
$(PYTEST) --flake8 --isort -m "flake8 or isort" mpwo_api
lint-react:
$(NPM) lint
serve-python:
$(FLASK) run --with-threads -h $(HOST) -p $(API_PORT)