Pylint - bounswe/bounswe2020group1 GitHub Wiki
To create high-quality code as a team we decided to use Pylint as a guide. High-quality code means:
- It does what it is supposed to do.
- It does not contain defects or problems.
- It is easy to read, maintain, and extend.
Download Pylint
Mac OS X
pip install pylint
Windows
pip install pylint
Ubuntu
sudo apt-get install pylint
Run Pylint
pylint fileName.py
After running the program file with Pylint you will get a full report.
Check How to run Pylint for more running options!
An Example of the Report
- [R]efactor for a “good practice” metric violation
- [C]onvention for coding standard violation
- [W]arning for stylistic problems, or minor programming issues
- [E]rror for important programming issues (i.e. most probably bug)
- [F]atal for errors which prevented further processing
For more information:
https://www.pylint.org/
https://realpython.com/python-code-quality/