hooks:python: Max line length should be 120
authorThibault Saunier <tsaunier@igalia.com>
Tue, 12 Oct 2021 21:09:16 +0000 (18:09 -0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 14 Oct 2021 12:59:29 +0000 (12:59 +0000)
As we ignore line length in pycodestyle and we have many places with
line with more than 80 and less than 120 chars

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1121>

scripts/git-hooks/pre-commit-python.hook

index 14fbc63..15ed765 100755 (executable)
@@ -71,7 +71,7 @@ def main():
         if non_compliant_files:
             print(NOT_PYCODESTYLE_COMPLIANT_MESSAGE_POST)
             for non_compliant_file in non_compliant_files:
-                print("autopep8 -i ", non_compliant_file, "; git add ",
+                print("autopep8 -i --max-line-length 120", non_compliant_file, "; git add ",
                       non_compliant_file)
             print("git commit")
         sys.exit(1)