How To Install prospector on Debian 9
Introduction
In this tutorial we learn how to install prospector
on Debian 9.
What is prospector
prospector is:
Prospector analyzes Python source files and puts out information about coding errors, potential problems, convention violation and unnecessary complexity.
It provides an uniform and flexible interface for these tools:
- Pylint (extensive Python code checker)
- Pyflakes (checks Python code for logical errors)
- Pycodestyle (checks for PEP-8 coding style conventions)
- Pep8-naming (checks for PEP-8 naming conventions not covered by pycodestyle)
- McCabe (checks for cyclomatic code complexity)
- Pydocstyle (checks for compliance with the PEP-257 docstring conventions)
- Dodgy (checks for hard coded passwords, VCS diff checkins etc.)
- Vulture (scans Python programs for unused code)
- Pyroma (Python packaging quality checker)
Prospector detects if code employs specific frameworks and libraries, and checks them by corresponding Pylint plugins:
- Django (web application framework)
- Celery (asynchronous task/job queue)
- Flask (web application framework)
There are three methods to install prospector
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install prospector Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install prospector
using apt-get
by running the following command:
sudo apt-get -y install prospector
Install prospector Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install prospector
using apt
by running the following command:
sudo apt -y install prospector
Install prospector Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install prospector
using aptitude
by running the following command:
sudo aptitude -y install prospector
How To Uninstall prospector on Debian 9
To uninstall only the prospector
package we can use the following command:
sudo apt-get remove prospector
Uninstall prospector And Its Dependencies
To uninstall prospector
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove prospector
Remove prospector Configurations and Data
To remove prospector
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge prospector
Remove prospector configuration, data, and all of its dependencies
We can use the following command to remove prospector
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge prospector
Dependencies
prospector have the following dependencies:
- dodgy
- pydocstyle
- pylint3
- python3-mccabe
- python3-pep8-naming
- python3-pycodestyle
- python3-pyflakes
- python3-pylint-celery
- python3-pylint-common
- python3-pylint-django
- python3-pylint-flask
- python3-pylint-plugin-utils
- python3-requirements-detector
- python3-setoptconf
- python3-yaml
- python3.5
References
Summary
In this tutorial we learn how to install prospector
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.