mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 17:14:02 +00:00
build: create check for python black
If python black is install then it would check the formating of all of the python files and test the for it. Otherwise, it would just simply ignore the python black if python black is not installed.
This commit is contained in:
parent
38d291f229
commit
9f77d26ad0
|
@ -5235,6 +5235,11 @@ CLEANFILES += \
|
|||
###############################################################################
|
||||
|
||||
include Makefile.examples
|
||||
if WITH_PYTHON_BLACK
|
||||
check-python-black:
|
||||
$(BLACK) --check $(top_srcdir)
|
||||
check_local += check-python-black
|
||||
endif
|
||||
|
||||
###############################################################################
|
||||
|
||||
|
|
|
@ -1272,6 +1272,10 @@ else
|
|||
have_introspection=no
|
||||
fi
|
||||
|
||||
# check for python black. And check if all files are formatted with python black
|
||||
AC_PATH_PROG(BLACK, black)
|
||||
AM_CONDITIONAL(WITH_PYTHON_BLACK, test "${BLACK}" != "")
|
||||
|
||||
# check for pregenerated manpages and documentation to be installed
|
||||
use_pregen_docs=no
|
||||
if test "$build_docs" != "yes" -a \
|
||||
|
|
Loading…
Reference in a new issue