Variable: python-flymake-command
python-flymake-command is a customizable variable defined in
python.el.gz.
Value
("pyflakes")
Documentation
The external tool that will be used to perform the syntax check.
This is a non-empty list of strings: the checker tool possibly followed by
required arguments. Once launched it will receive the Python source to be
checked as its standard input.
To use flake8 you would set this to ("flake8" "-").
To use pylint you would set this to ("pylint" "--from-stdin" "stdin").
This variable was added, or its default value changed, in Emacs 26.1.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defcustom python-flymake-command '("pyflakes")
"The external tool that will be used to perform the syntax check.
This is a non-empty list of strings: the checker tool possibly followed by
required arguments. Once launched it will receive the Python source to be
checked as its standard input.
To use `flake8' you would set this to (\"flake8\" \"-\").
To use `pylint' you would set this to (\"pylint\" \"--from-stdin\" \"stdin\")."
:version "26.1"
:type '(choice (const :tag "Pyflakes" ("pyflakes"))
(const :tag "Flake8" ("flake8" "-"))
(const :tag "Pylint" ("pylint" "--from-stdin" "stdin"))
(repeat :tag "Custom command" string)))