X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=Makefile;h=bcbfe07912879491e99fec03e6a63147dfba2ccc;hb=520c6203b7aaa7079c1e36f8cdd0718ec073eacd;hp=c122c0f220eff698006784624b50182e5bf9fabe;hpb=02a237b8633dca400bd1d08f87c24cea30933f92;p=grml-scripts.git diff --git a/Makefile b/Makefile index c122c0f..bcbfe07 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ pythoncheck: ## Run pythoncheck (flakecheck, isortcheck + blackcheck) @RETURN=0 @for pythonfile in usr_bin/* usr_sbin/* usr_share/*; do @ if head -1 "$${pythonfile}" | grep -q "python"; then - @ flake8 "$${pythonfile}" || RETURN=1 + @ flake8 --max-line-length 88 "$${pythonfile}" || RETURN=1 @ isort --check "$${pythonfile}" || RETURN=1 @ black --check "$${pythonfile}" || RETURN=1 @ fi @@ -34,7 +34,7 @@ flakecheck: ## Run flake8 only @RETURN=0 @for pythonfile in usr_bin/* usr_sbin/* usr_share/*; do @ if head -1 "$${pythonfile}" | grep -q "python"; then - @ flake8 "$${pythonfile}" || RETURN=1 + @ flake8 --max-line-length 88 "$${pythonfile}" || RETURN=1 @ fi @done @exit $${RETURN}