Skip to content

Commit 4662d39

Browse files
committed
Add autoformatter deps
1 parent 80feccb commit 4662d39

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

{{ cookiecutter.project_slug }}/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,25 @@ run-container:
1818
##### ci
1919
POETRY_RUN := poetry run
2020

21-
ci: typecheck test lint
21+
ci: lint typecheck test
2222

2323
typecheck:
2424
@echo check types
2525
${POETRY_RUN} mypy ./{{ cookiecutter.project_slug }}
2626

2727
lint:
2828
@echo check style
29+
${POETRY_RUN} isort --profile black --check .
2930
${POETRY_RUN} flake8 --show-source --statistics
31+
${POETRY_RUN} black --check .
3032

3133
test:
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
3742
MANIFEST_PATH = $(shell pwd)/k8s

{{ cookiecutter.project_slug }}/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ uvicorn = "^0.11.5"
1313
requests = "^2.24.0"
1414

1515
[tool.poetry.dev-dependencies]
16+
black = "^20.8b1"
1617
flake8 = "^3.7.9"
18+
isort = "^5.7.0"
1719
mypy = "^0.770"
1820
pytest = "^5.4.1"
1921
pytest-cov = "^2.8.1"
20-
black = "^19.10b0"
2122

2223
[build-system]
2324
requires = ["poetry>=0.12"]

0 commit comments

Comments
 (0)