File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
{{ cookiecutter.project_slug }} Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -18,20 +18,25 @@ run-container:
1818# #### ci
1919POETRY_RUN := poetry run
2020
21- ci : typecheck test lint
21+ ci : lint typecheck test
2222
2323typecheck :
2424@echo check types
2525${POETRY_RUN} mypy ./{{ cookiecutter.project_slug }}
2626
2727lint :
2828@echo check style
29+ ${POETRY_RUN} isort --profile black --check .
2930${POETRY_RUN} flake8 --show-source --statistics
31+ ${POETRY_RUN} black --check .
3032
3133test :
3234@echo testing
3335${POETRY_RUN} pytest -rf --cov=./{{ cookiecutter.project_slug }}
3436
37+ fmt :
38+ ${POETRY_RUN} isort --profile black .
39+ ${POETRY_RUN} black .
3540
3641# #### k8s
3742MANIFEST_PATH = $(shell pwd) /k8s
Original file line number Diff line number Diff line change @@ -13,11 +13,12 @@ uvicorn = "^0.11.5"
1313requests = " ^2.24.0"
1414
1515[tool .poetry .dev-dependencies ]
16+ black = " ^20.8b1"
1617flake8 = " ^3.7.9"
18+ isort = " ^5.7.0"
1719mypy = " ^0.770"
1820pytest = " ^5.4.1"
1921pytest-cov = " ^2.8.1"
20- black = " ^19.10b0"
2122
2223[build-system ]
2324requires = [" poetry>=0.12" ]
You can’t perform that action at this time.
0 commit comments