• Michael's avatar
    python: fix and extend pyclean (#7762) · 9785d241
    Michael authored
    Deleting `.mypy_cache` did not work, because the directories were not
    empty.  They contain JSON files instead of compiled byte-code.
    
    This extends the cleanup by also getting rid of `.pytest_cache`
    directories.
    9785d241

python plugin

The plugin adds several aliases for useful python commands.

To use it, add python to the plugins array of your zshrc file:

plugins=(... python)

Aliases

Command Description
pyfind Finds .py files recursively in the current directory
pyclean [dirs] Deletes byte-code and cache files from a list of directories or the current one
pygrep <text> Looks for text in .py files