Skip to content

Instantly share code, notes, and snippets.

@rvasilevsk
Last active November 6, 2022 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rvasilevsk/b69775d84afdf18e974ca14bde281929 to your computer and use it in GitHub Desktop.
Save rvasilevsk/b69775d84afdf18e974ca14bde281929 to your computer and use it in GitHub Desktop.
[Makefile] flake8, black, isort
## flake, black, isort ################################################################################################
.PHONY: flake
flake:
flake8 --include=$(PY_FILES)
.PHONY: black
black:
black --check --diff $(PY_FILES)
black-fix:
black $(PY_FILES)
.PHONY: isort
isort:
isort --check-only --diff $(PY_FILES)
.PHONY: isort-fix
isort-fix:
isort $(PY_FILES)
.PHONY: fix
fix: isort-fix black-fix flake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment