Browse Source

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 <carnil@debian.org>
remotes/origin/buster
Salvatore Bonaccorso 1 year ago
parent
commit
0fdf2513b6
  1. 1
      debian/changelog
  2. 2
      debian/tests/python

1
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 <carnil@debian.org> Tue, 04 Aug 2020 16:33:40 +0200

2
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

Loading…
Cancel
Save