summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-07-02 20:03:47 +0200
committerFlorian Bruhin <me@the-compiler.org>2020-07-02 22:21:07 +0200
commita00ea50c60f12f96e76c1aa162c7ab1fc64bbdc2 (patch)
tree18d34f307418e3776506b9f14349791196029e24
parent52911273e74858abcea1aee4f5382ed097bfd111 (diff)
downloadqutebrowser-a00ea50c60f12f96e76c1aa162c7ab1fc64bbdc2.tar.gz
qutebrowser-a00ea50c60f12f96e76c1aa162c7ab1fc64bbdc2.zip
ci: Try to match colored pylint output
-rw-r--r--scripts/dev/ci/problemmatchers.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/dev/ci/problemmatchers.py b/scripts/dev/ci/problemmatchers.py
index 1c83c24e3..48173c4ce 100644
--- a/scripts/dev/ci/problemmatchers.py
+++ b/scripts/dev/ci/problemmatchers.py
@@ -92,11 +92,14 @@ MATCHERS = {
],
},
+ # For some reason, ANSI color escape codes end up as part of the message
+ # GitHub gets with colored pylint output - so we have those escape codes
+ # (e.g. "\033[35m...\033[0m") as part of the regex patterns...
"pylint": {
# filename.py:80:10: E0602: Undefined variable 'foo' (undefined-variable)
"pattern-error": [
{
- "regexp": r"^([^:]+):(\d+):(\d+): (E\d+): (.*)",
+ "regexp": r"^([^:]+):(\d+):(\d+): (E\d+): \033\[[\d;]+m([^\033]+).*$",
"file": 1,
"line": 2,
"column": 3,
@@ -108,7 +111,7 @@ MATCHERS = {
# filename.py:78:14: W0613: Unused argument 'unused' (unused-argument)
"pattern-warning": [
{
- "regexp": r"^([^:]+):(\d+):(\d+): ([A-DF-Z]\d+): (.*)",
+ "regexp": r"^([^:]+):(\d+):(\d+): ([A-DF-Z]\d+): \033\[[\d;]+m([^\033]+).*$",
"file": 1,
"line": 2,
"column": 3,