Last active
November 6, 2022 16:19
-
-
Save rvasilevsk/b69775d84afdf18e974ca14bde281929 to your computer and use it in GitHub Desktop.
[Makefile] flake8, black, isort
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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