From d766cd533ec1690da3a25302953d8671b678e19f Mon Sep 17 00:00:00 2001 From: yfyyfy <32302435+yfyyfy@users.noreply.github.com> Date: Wed, 1 May 2024 00:24:57 +0900 Subject: [PATCH] Suppress flake8's colored outputs The outputs of flake8 are parsed by flycheck-parse-with-patterns, which does not take ASCII escape sequences into account. Therefore, flake8 should return simple texts (without escape sequences). --- flycheck.el | 1 + 1 file changed, 1 insertion(+) diff --git a/flycheck.el b/flycheck.el index 48d678cc2..a237c55d7 100644 --- a/flycheck.el +++ b/flycheck.el @@ -10775,6 +10775,7 @@ Requires Flake8 3.0 or newer. See URL ;; Python versions; see https://github.com/flycheck/flycheck/issues/1055. :command ("python3" (eval (flycheck-python-module-args 'python-flake8 "flake8")) + "--color=never" "--format=default" (config-file "--append-config" flycheck-flake8rc) (option "--max-complexity" flycheck-flake8-maximum-complexity nil