096ef3e6a77e64f58578c2ecd5e831782944c473

Author
Marc Cornellà <marc.cornella@live.com>
Committer
GitHub <noreply@github.com>
Date

Message

python: remove mypy caches on `pyclean` (#7151)

Remove Optional Static Type Checker's (mypy) cache files

Diff

 1diff --git a/plugins/python/python.plugin.zsh b/plugins/python/python.plugin.zsh
 2index a10c06fd3ded515f7b52cef7e1427286ce2fe40b..f754ea261b7f38e833e1cfebada83db76af36a11 100644
 3--- a/plugins/python/python.plugin.zsh
 4+++ b/plugins/python/python.plugin.zsh
 5@@ -1,12 +1,13 @@
 6 # Find python file
 7 alias pyfind='find . -name "*.py"'
 8 
 9-# Remove python compiled byte-code in either current directory or in a
10+# Remove python compiled byte-code and mypy cache in either current directory or in a
11 # list of specified directories
12 function pyclean() {
13     ZSH_PYCLEAN_PLACES=${*:-'.'}
14     find ${ZSH_PYCLEAN_PLACES} -type f -name "*.py[co]" -delete
15     find ${ZSH_PYCLEAN_PLACES} -type d -name "__pycache__" -delete
16+    find ${ZSH_PYCLEAN_PLACES} -type d -name ".mypy_cache" -delete
17 }
18 
19 # Grep among .py files