Add format in shared makefile
This commit is contained in:
parent
56f5a84146
commit
6e4876839b
|
@ -7,6 +7,7 @@ PYLINT_ARG := tools
|
||||||
MYPY_ARG := .
|
MYPY_ARG := .
|
||||||
PYTEST_ARG := .
|
PYTEST_ARG := .
|
||||||
|
|
||||||
|
format: .format
|
||||||
lint: .pylint .mypy
|
lint: .pylint .mypy
|
||||||
test: .pytest
|
test: .pytest
|
||||||
clean: .clean
|
clean: .clean
|
||||||
|
|
|
@ -15,6 +15,12 @@ $(VENV):
|
||||||
pip install --upgrade pip setuptools wheel
|
pip install --upgrade pip setuptools wheel
|
||||||
pip install $(PIP_INSTALL)
|
pip install $(PIP_INSTALL)
|
||||||
|
|
||||||
|
.PHONY: .format
|
||||||
|
.format: $(VENV)
|
||||||
|
source $(VENV)/bin/activate
|
||||||
|
black .
|
||||||
|
isort --profile black .
|
||||||
|
|
||||||
.PHONY: .pylint
|
.PHONY: .pylint
|
||||||
.pylint: $(VENV)
|
.pylint: $(VENV)
|
||||||
source $(VENV)/bin/activate
|
source $(VENV)/bin/activate
|
||||||
|
|
Loading…
Reference in New Issue