diff options
author | Thibault Saunier <tsaunier@igalia.com> | 2021-10-12 18:09:16 -0300 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-10-14 12:59:29 +0000 |
commit | 57bfb85bc598c7c5ca286c386a109e287bd97348 (patch) | |
tree | 8367cc0273c240c27866a812b0308d6816caa370 /scripts | |
parent | 9a183e45d4889d876698748fd1513afd749c438f (diff) | |
download | gstreamer-57bfb85bc598c7c5ca286c386a109e287bd97348.tar.gz |
hooks:python: Max line length should be 120
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>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/git-hooks/pre-commit-python.hook | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/git-hooks/pre-commit-python.hook b/scripts/git-hooks/pre-commit-python.hook index 14fbc63bfd..15ed76566f 100755 --- a/scripts/git-hooks/pre-commit-python.hook +++ b/scripts/git-hooks/pre-commit-python.hook @@ -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) |