File size: 502 Bytes
f732d7c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
RUN := poetry run
.PHONY: check
check: lint mypy
.PHONY: lint
lint: lint-black lint-isort lint-flake8
.PHONY: lint-black
lint-black:
$(RUN) black --check --diff --quiet .
.PHONY: lint-isort
lint-isort:
$(RUN) isort --check --quiet .
.PHONY: lint-flake8
lint-flake8:
$(RUN) pflake8 .
.PHONY: mypy
mypy:
$(RUN) mypy .
.PHONY: format
format: format-black format-isort
.PHONY: format-black
format-black:
$(RUN) black --quiet .
.PHONY: format-isort
format-isort:
$(RUN) isort --quiet .
|