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.

Black

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

Footnotes

  1. https://www.pylint.org/↩︎

  2. https://pypi.org/project/pycodestyle/↩︎

  3. https://pypi.org/project/flake8/↩︎

  4. https://github.com/PyCQA/mccabe)↩︎

  5. https://radon.readthedocs.io/en/latest/↩︎

  6. https://atom.io/packages/linter-gjslint ## Formatters↩︎

  7. https://pypi.org/project/black/↩︎

  8. https://pypi.org/project/black/22.1.0/↩︎