Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Python: prospector

LCD 47 edited this page Oct 21, 2014 · 6 revisions

Maintainer: LCD 47 [email protected]

Prospector is a static analysis tool for Python. It brings together the functionality of other tools such as pylint, pyflakes, pep8, pep257, and McCabe complexity. See the project's official documentation for details.

Option

g:syntastic_prospector_base_dir (string; default: unset)
Base directory of the project to check.

Prospector is intended to check Python projects rather than individual files. The checker assumes the current file is part of such a project, and tries to figure out said project's base directory:

  1. If variables b:syntastic_prospector_base_dir or g:syntastic_prospector_base_dir are set, they are assumed to point to the base directory of the project and their value is used;

  2. Otherwise, files named setup.py and __init__.py are searched (in that order) in the base directory of the current file and upwards; if found, their base directory is used;

  3. Otherwise, the base directory of the current file is used.

Prospector is then run in the base directory of the project.

Clone this wiki locally