Skip to content

Commit

Permalink
Suppress flake8's colored outputs
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
yfyyfy committed Apr 30, 2024
1 parent 75cac2d commit d766cd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flycheck.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d766cd5

Please sign in to comment.