X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=Makefile;h=bcbfe07912879491e99fec03e6a63147dfba2ccc;hb=a4b7aa61ed1e89cae05d079a44e520658323e927;hp=c122c0f220eff698006784624b50182e5bf9fabe;hpb=95f1a389296e098bfd40ad9bbf05f795de3b6440;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}