From 0695fbd74993a14dbc57fdf35dea356ea520f734 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Mon, 16 Dec 2024 22:01:07 +0100 Subject: [PATCH] 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'. (cherry picked from commit 7c94898fa53d3605ba643df25206386de70ade61) --- lisp/progmodes/python.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 47fb818c78e..b59f493b75d 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -7073,7 +7073,8 @@ implementations: `python-mode' and `python-ts-mode'." (defvar grep-files-aliases) (defvar grep-find-ignored-directories) (cl-pushnew '("py" . "*.py") grep-files-aliases :test #'equal) - (dolist (dir '(".tox" ".venv" ".mypy_cache" ".ruff_cache")) + (dolist (dir '(".mypy_cache" ".pytest_cache" ".ropeproject" + ".ruff_cache" ".tox" ".venv")) (cl-pushnew dir grep-find-ignored-directories)))) (setq-local prettify-symbols-alist python-prettify-symbols-alist) -- 2.39.5