-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Python: prospector
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.
- 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:
-
If variables
b:syntastic_prospector_base_dir
org:syntastic_prospector_base_dir
are set, they are assumed to point to the base directory of the project and their value is used; -
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; -
Otherwise, the base directory of the current file is used.
Prospector is then run in the base directory of the project.