Code Quality

Code Formatters

isort

isort your imports, so you don’t have to.

isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections and by type.

Black Code Formatter

Black is the uncompromising Python code formatter.

yapf

The ultimate goal is that the code YAPF produces is as good as the code that a programmer would write if they were following the style guide. It takes away some of the drudgery of maintaining your code.

yapf will correct a lot of formatting issues before you run pylint…

Static Type Checking

mypy

Type checkers help ensure that you’re using variables and functions in your code correctly. With mypy, add type hints (PEP 484) to your Python programs, and mypy will warn you when you use those types incorrectly.

Style Checking

pycodestyle

pycodestyle is a tool to check your Python code against some of the style conventions in PEP 8.

pydocstyle

pydocstyle is a static analysis tool for checking compliance with Python docstring conventions.

pylint

Pylint is a tool that checks for errors in Python code, tries to enforce a coding standard and looks for code smells.