From 0fdf2513b6bf70da85aae603157de9e88994ca40 Mon Sep 17 00:00:00 2001 From: Salvatore Bonaccorso Date: Thu, 27 Aug 2020 20:28:36 +0200 Subject: [PATCH] debian/tests/python: pycodestyle: Increase max-line-length to 100 Set the maximum allowed line length to 100 as the default of 79 is too limiting small. Raising the allowed line length to 100 seems acceptable enough. This addresses autopkgtest failure for the python test since the refactoring changes for debian/bin/gencontrol.py to factor out the siable flags for installer modules, debug info and signed code. Fixes: 9b82c45d67dc ("Factor out installer modules disable flag") Fixes: 5a2d988f8612 ("Factor out debug info disable flag") Fixes: 710b1f5b6d8c ("Add flag to disable signed code") Signed-off-by: Salvatore Bonaccorso --- debian/changelog | 1 + debian/tests/python | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 9557df4ed..6358f0fa1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -733,6 +733,7 @@ linux (4.19.143-1) UNRELEASED; urgency=medium (CVE-2020-15780) * [rt] Update to 4.19.142-rt63 * net/packet: fix overflow in tpacket_rcv (CVE-2020-14386) + * debian/tests/python: pycodestyle: Increase max-line-length to 100. -- Salvatore Bonaccorso Tue, 04 Aug 2020 16:33:40 +0200 diff --git a/debian/tests/python b/debian/tests/python index 3f1f8c7e8..c743f21ef 100755 --- a/debian/tests/python +++ b/debian/tests/python @@ -22,7 +22,7 @@ sources="$AUTOPKGTEST_TMP/sources" echo "I: Running pycodestyle..." # Ignore E126,E226,W503 (ignored by default) and also E127,W291 which # give false positives. -if ! xargs pycodestyle --ignore E126,E127,E226,W291,W503 < "$sources"; then +if ! xargs pycodestyle --max-line-length=100 --ignore E126,E127,E226,W291,W503 < "$sources"; then # pycodestyle only writes to stdout echo >&2 "E: pycodestyle detected problems" fi