Skip to content
Merged
Prev Previous commit
Next Next commit
add fmt and sort pipenv run scripts
  • Loading branch information
Kilo59 committed Mar 26, 2020
commit bd05311761fd6687c878dea96dbdfd1dc406a50b
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ lint:
pylint $(APP) || true

fmt:
isort -rc --atomic
black .
isort --apply --atomic
black . -l 120

check-fmt:
isort -rc --check
Expand Down
2 changes: 2 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ python_version = "3.8"
[scripts]
dev = "uvicorn app.main:APP --reload"
start = "uvicorn app.main:APP"
fmt = "black . -l 120"
sort = "isort --apply --atomic"