[PATCH 1/3] utils: checkstyle: Remove leading colon from pycodestyle messages

Stefan Klug stefan.klug at ideasonboard.com
Fri Aug 30 14:52:58 CEST 2024


The pycodestyle messages contain a leading ': ' which is not nice to look at.
Ignore it.

Signed-off-by: Stefan Klug <stefan.klug at ideasonboard.com>
---
 utils/checkstyle.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/checkstyle.py b/utils/checkstyle.py
index c9e41d4149f7..c6016f60a446 100755
--- a/utils/checkstyle.py
+++ b/utils/checkstyle.py
@@ -711,7 +711,7 @@ class MesonChecker(StyleChecker):
 
 class Pep8Checker(StyleChecker):
     patterns = ('*.py',)
-    results_regex = re.compile(r'stdin:([0-9]+):([0-9]+)(.*)')
+    results_regex = re.compile(r'stdin:([0-9]+):([0-9]+): (.*)')
 
     def __init__(self, content):
         super().__init__()
-- 
2.43.0



More information about the libcamera-devel mailing list