]> git.eshelyaron.com Git - emacs.git/commitdiff
Add ruff and flake8 to python-check-command
authorStefan Kangas <stefankangas@gmail.com>
Fri, 4 Aug 2023 12:21:17 +0000 (14:21 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Fri, 4 Aug 2023 12:21:26 +0000 (14:21 +0200)
* lisp/progmodes/python.el (python-check-command): Add ruff and
flake8.

lisp/progmodes/python.el

index 52e5a36f4b014818b02cd40b4553824b0e26faae..1930f68617cad2e98dd57e4966d8f60eb3965bcd 100644 (file)
@@ -5214,11 +5214,13 @@ def __FFAP_get_module_path(objstr):
 
 (defcustom python-check-command
   (cond ((executable-find "pyflakes") "pyflakes")
+        ((executable-find "ruff") "ruff")
+        ((executable-find "flake8") "flake8")
         ((executable-find "epylint") "epylint")
         (t "pyflakes"))
   "Command used to check a Python file."
   :type 'string
-  :version "29.1")
+  :version "30.1")
 
 (defcustom python-check-buffer-name
   "*Python check: %s*"