grepedit/notifyd.py: Convert to Python 3
[grml-scripts.git] / Makefile
index c122c0f..bcbfe07 100644 (file)
--- 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}