Add format in shared makefile
This commit is contained in:
parent
56f5a84146
commit
6e4876839b
|
@ -7,6 +7,7 @@ PYLINT_ARG := tools
|
|||
MYPY_ARG := .
|
||||
PYTEST_ARG := .
|
||||
|
||||
format: .format
|
||||
lint: .pylint .mypy
|
||||
test: .pytest
|
||||
clean: .clean
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue