diff options
| author | Stefan Kangas | 2024-12-16 22:01:07 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2024-12-16 22:01:07 +0100 |
| commit | 7c94898fa53d3605ba643df25206386de70ade61 (patch) | |
| tree | 8564c3b7da6843313ef0421f2c09bbb6e003127f /lisp/progmodes/python.el | |
| parent | a07c89cf9b93ac78d55b528134c09c376afc58da (diff) | |
| download | emacs-7c94898fa53d3605ba643df25206386de70ade61.tar.gz emacs-7c94898fa53d3605ba643df25206386de70ade61.zip | |
Ignore some more Python tooling directories when grepping
* lisp/progmodes/python.el (python-base-mode): Add Pytest and Rope
cache directories to 'grep-find-ignored-directories'.
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 2f8d506fc60..dca0936c826 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -7143,7 +7143,8 @@ implementations: `python-mode' and `python-ts-mode'." | |||
| 7143 | (defvar grep-files-aliases) | 7143 | (defvar grep-files-aliases) |
| 7144 | (defvar grep-find-ignored-directories) | 7144 | (defvar grep-find-ignored-directories) |
| 7145 | (cl-pushnew '("py" . "*.py") grep-files-aliases :test #'equal) | 7145 | (cl-pushnew '("py" . "*.py") grep-files-aliases :test #'equal) |
| 7146 | (dolist (dir '(".tox" ".venv" ".mypy_cache" ".ruff_cache")) | 7146 | (dolist (dir '(".mypy_cache" ".pytest_cache" ".ropeproject" |
| 7147 | ".ruff_cache" ".tox" ".venv")) | ||
| 7147 | (cl-pushnew dir grep-find-ignored-directories)))) | 7148 | (cl-pushnew dir grep-find-ignored-directories)))) |
| 7148 | 7149 | ||
| 7149 | (setq-local prettify-symbols-alist python-prettify-symbols-alist) | 7150 | (setq-local prettify-symbols-alist python-prettify-symbols-alist) |