Skip to content

Commit df8b7f5

Browse files
committed
autoformat recipe include import sorting
1 parent cadb8ae commit df8b7f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/common.Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ info: ## displays basic info
9292

9393

9494
.PHONY: autoformat
95-
autoformat: ## runs black python formatter on this service's code
96-
# sort imports (NOTE: needs installed imports to work well)
97-
@python3 -m isort $(CURDIR)
95+
autoformat: ## runs black python formatter on this service's code. Use AFTER make install-*
96+
# sort imports
97+
@python3 -m isort --atomic -rc $(CURDIR)
9898
# auto formatting with black
9999
@python3 -m black --verbose \
100100
--exclude "/(\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|\.svn|_build|buck-out|build|dist|migration|client-sdk|generated_code)/" \

0 commit comments

Comments
 (0)