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'.
This commit is contained in:
Stefan Kangas 2024-12-16 22:01:07 +01:00
parent a07c89cf9b
commit 7c94898fa5

View file

@ -7143,7 +7143,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)