feat(ci): add quick style checks suitable for git hooks

[no changelog]
pull/2098/head
grdddj 2 years ago committed by Jiří Musil
parent 02660ea64a
commit 0e27423cff

@ -32,6 +32,11 @@ pystyle_check: ## run code style check on application sources and tests
@echo [PYTHON]
make -C python style_check
pystyle_quick_check: ## run the basic style checks, suitable for a quick git hook
@isort --check-only $(PY_FILES)
@black --check $(PY_FILES)
make -C python style_quick_check
pystyle: ## apply code style on application sources and tests
@echo [ISORT]
@isort $(PY_FILES)

@ -57,6 +57,10 @@ style_check:
flake8
pyright
style_quick_check:
black --check $(STYLE_TARGETS)
isort --check-only --recursive $(STYLE_TARGETS) --skip-glob "$(EXCLUDE_TARGETS)/*"
.PHONY: all build install clean style style_check git-clean clean-build clean-pyc clean-test
test:

Loading…
Cancel
Save