Codio Activity : Using Linters to Achieve Python Code Quality

In this discussion, we used linters to check the quality of python code

We worked with the code below;

The code was tested with pylint, pyflakes, pycodestyle and pydocstyle

Pylint is powerful and comprehensive, covering style, potential errors, and coding standards.

pylint test is shown below

Pyflakes is lightweight and efficient for catching simple errors quickly.

pyflakes test is shown below

Testing the code with pycodestyle shows that pycodestyle is highly effective for maintaining a consistent coding style within a project.

pycodestyle test is shown below

Testing the code with pydocstyle checks adherence to docstring conventions, ensuring proper documentation in the code.

pydocstyle test is shown below

Phone

(265) 888-208 986

Address

National TB Control Program
Private Bag 65, Lilongwe
Malawi