diff options
| author | Stefan Kangas | 2023-08-04 14:21:17 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2023-08-04 14:21:26 +0200 |
| commit | 60e5f212182ca2f41f89a4315075e38433bc8ac0 (patch) | |
| tree | 8b6e6880a78ae3bc125f9bf322a178d132f10553 /lisp/progmodes/python.el | |
| parent | 9026990c6685e87c328f4fcc575ef644c2f5595a (diff) | |
| download | emacs-60e5f212182ca2f41f89a4315075e38433bc8ac0.tar.gz emacs-60e5f212182ca2f41f89a4315075e38433bc8ac0.zip | |
Add ruff and flake8 to python-check-command
* lisp/progmodes/python.el (python-check-command): Add ruff and
flake8.
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 4 |
1 files changed, 3 insertions, 1 deletions
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): | |||
| 5214 | 5214 | ||
| 5215 | (defcustom python-check-command | 5215 | (defcustom python-check-command |
| 5216 | (cond ((executable-find "pyflakes") "pyflakes") | 5216 | (cond ((executable-find "pyflakes") "pyflakes") |
| 5217 | ((executable-find "ruff") "ruff") | ||
| 5218 | ((executable-find "flake8") "flake8") | ||
| 5217 | ((executable-find "epylint") "epylint") | 5219 | ((executable-find "epylint") "epylint") |
| 5218 | (t "pyflakes")) | 5220 | (t "pyflakes")) |
| 5219 | "Command used to check a Python file." | 5221 | "Command used to check a Python file." |
| 5220 | :type 'string | 5222 | :type 'string |
| 5221 | :version "29.1") | 5223 | :version "30.1") |
| 5222 | 5224 | ||
| 5223 | (defcustom python-check-buffer-name | 5225 | (defcustom python-check-buffer-name |
| 5224 | "*Python check: %s*" | 5226 | "*Python check: %s*" |