Add format in shared makefile

This commit is contained in:
jo 2021-09-13 14:21:19 +02:00
parent 56f5a84146
commit 6e4876839b
2 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,7 @@ PYLINT_ARG := tools
MYPY_ARG := .
PYTEST_ARG := .
format: .format
lint: .pylint .mypy
test: .pytest
clean: .clean

View File

@ -15,6 +15,12 @@ $(VENV):
pip install --upgrade pip setuptools wheel
pip install $(PIP_INSTALL)
.PHONY: .format
.format: $(VENV)
source $(VENV)/bin/activate
black .
isort --profile black .
.PHONY: .pylint
.pylint: $(VENV)
source $(VENV)/bin/activate