Prospector is a comprehensive Python code analysis tool that aggregates results from various static analysis tools like Pylint, Mypy, and Flake8. It offers a unified interface for code quality checks, supporting configurable profiles and output formats. Currently at version 1.18.0, Prospector maintains an active development pace with frequent releases addressing dependency updates, bug fixes, and minor feature enhancements.
pip install prospectorVerified import paths — ran on the pinned version, not inferred.
Run Prospector from the command line on a specified file or directory. For more control, use a configuration file like `.prospector.yml`.
Migrate any `pylint-flask` specific checks to alternative tools or manual review. Consider if `flake8-flask` or similar dedicated linters for Flask are needed and integrate them separately.
Optimize configuration by disabling unnecessary tools or checks for specific parts of the codebase. Utilize caching mechanisms if available (e.g., in CI). Run Prospector incrementally on changed files where possible.
Start with a minimal `.prospector.yml` and gradually add complexity. Leverage Prospector's built-in profiles (`strict`, `moderate`, `web`). Use `prospector --dump-config` to understand the active configuration.
Always test new Prospector versions in a staging environment before deploying to production. Review release notes for underlying tool version bumps. Pin Prospector to a specific version in `requirements.txt` or `pyproject.toml` to maintain stability.
Check for known incompatibilities between your Pylint version and Prospector; downgrading Pylint might resolve the issue if it's a known bug. Alternatively, the root cause could be an underlying syntax or runtime error in your Python code that Pylint cannot properly process.
If your project is not a Django project, disable Prospector's auto-detection by adding `autodetect: false` to your `.prospector.yaml` configuration file, or explicitly specify the frameworks in use via the `uses` option.
Ensure Prospector is installed in your active Python environment using `pip install prospector`. If using a virtual environment, activate it before running `prospector`. Verify the installation by checking Python's script directory or reinstalling.