Variable: python-check-command
python-check-command is a customizable variable defined in
python.el.gz.
Value
"pyflakes"
Documentation
Command used to check a Python file.
This variable was added, or its default value changed, in Emacs 31.2.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
;;; Code check
(defcustom python-check-command
(cond*
((executable-find "pyflakes") "pyflakes")
((bind* (have-ruff (executable-find "ruff"))))
((bind-and* have-ruff
(output (car (ignore-errors
(process-lines "ruff" "--version"))))
(_ (string-match "^ruff \\([0-9]+\\.[0-9]+\\.[0-9]+\\)"
output))
(version (match-string 1 output))
(_ (version<= "0.3.0" version)))
"ruff check")
(have-ruff "ruff")
((executable-find "flake8") "flake8")
((executable-find "epylint") "epylint")
(t "pyflakes"))
"Command used to check a Python file."
:type 'string
:version "31.2")