From 57bfb85bc598c7c5ca286c386a109e287bd97348 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 12 Oct 2021 18:09:16 -0300 Subject: [PATCH] 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: --- scripts/git-hooks/pre-commit-python.hook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)