]> git.eshelyaron.com Git - emacs.git/commitdiff
Ignore some more Python tooling directories when grepping
authorStefan Kangas <stefankangas@gmail.com>
Mon, 16 Dec 2024 21:01:07 +0000 (22:01 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Dec 2024 15:07:02 +0000 (16:07 +0100)
* 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

index 47fb818c78e9b9c781edea9630343e805577775a..b59f493b75d41f79f0babb04d9349d5c8464231c 100644 (file)
@@ -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)