Add rules to run black to Makefile
Added: black : Run source code formatter black black-check : Run source code formatter black in check-only mode
This commit is contained in:
parent
32bdbdf317
commit
2d0ee1a69e
11
Makefile
11
Makefile
@ -29,6 +29,9 @@ RELEASE_INST_DIR = $(RELEASE_DIR)/OOMAnalyser-$(VERSION)
|
|||||||
RELEASE_TARGZ = OOMAnalyser-$(VERSION).tar.gz
|
RELEASE_TARGZ = OOMAnalyser-$(VERSION).tar.gz
|
||||||
RELEASE_ZIP = OOMAnalyser-$(VERSION).zip
|
RELEASE_ZIP = OOMAnalyser-$(VERSION).zip
|
||||||
|
|
||||||
|
BLACK_BIN = black
|
||||||
|
BLACK_OPTS = --verbose
|
||||||
|
|
||||||
ROLLUP_BIN = rollup
|
ROLLUP_BIN = rollup
|
||||||
ROLLUP_OPTS = --config rollup.config.js
|
ROLLUP_OPTS = --config rollup.config.js
|
||||||
|
|
||||||
@ -50,6 +53,14 @@ HELP= @grep -B1 '^[a-zA-Z\-]*:' Makefile |\
|
|||||||
help:
|
help:
|
||||||
$(HELP)
|
$(HELP)
|
||||||
|
|
||||||
|
#+ Run source code formatter black
|
||||||
|
black:
|
||||||
|
$(BLACK_BIN) $(BLACK_OPTS) $(PY_SOURCE) $(TEST_FILE)
|
||||||
|
|
||||||
|
#+ Run source code formatter black in check-only mode
|
||||||
|
black-check:
|
||||||
|
$(BLACK_BIN) --check $(BLACK_OPTS) $(PY_SOURCE) $(TEST_FILE)
|
||||||
|
|
||||||
#+ Clean python compiler files and automatically generated files
|
#+ Clean python compiler files and automatically generated files
|
||||||
clean:
|
clean:
|
||||||
@echo "Remove all automatically generated files ..."
|
@echo "Remove all automatically generated files ..."
|
||||||
|
Loading…
Reference in New Issue
Block a user