The term for this is “linting”. A python module called Pylint is available.
It checks for coding standards and errors with full customizability. It can be run from the command line, as part of a continuous integration workflow, integrated into various IDEs.
6
solved How to check pep8 standards in my code [closed]