Skip to content
Iury O. G. Figueiredo edited this page Dec 1, 2019 · 1 revision

deadcode

A vy plugin to find unused code in projects by using python vulture.

Install

The deadcode plugin uses python vulture. Install it with:

pip install vulture

After that just place the following code in your ~/.vy/vyrc file. The best place it is in your extra plugin section.

# Python analysis through vulture.
from vyapp.plugins import deadcode
# The path to vulture executable. No need to set it
# if vulture is on your env path.
# deadcode.PythonAnalysis.PATH = 'vulture'
autoload(deadcode)

Usage

Once the plugin is properly installed just open some python file, switch to PYTHON mode with:

<Key-exclam>

Then press:

<Key-o>

After that it will display all reported errors from vulture in a line picker widget. You can just browse the reports and jump to the error line by pressing:

<Return>
Clone this wiki locally