Python code style

General notes on Python’s code style and practices.

Linters

  • Pylint1
  • pycodestyle2 (formerly PEP8)
  • Flake83, meta-package including PyFlakes, pycodestyle, Ned Batchelder’s McCabe script4
  • Pylama, including pycodestyle, pydocstyle, PyFlakes and Ned Batchelder’s McCabe script
  • Radon5
  • gjslint6

At the moment, my linter of choice is pylint.

Formatters

Black

Black7 the famous formatter. Black became stable software in 29th January 20228. The stability policy is avaible here.