From 60e5f212182ca2f41f89a4315075e38433bc8ac0 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Fri, 4 Aug 2023 14:21:17 +0200 Subject: [PATCH] Add ruff and flake8 to python-check-command * lisp/progmodes/python.el (python-check-command): Add ruff and flake8. --- lisp/progmodes/python.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 52e5a36f4b0..1930f68617c 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -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*" -- 2.39.2