Python guidelines

This article provides guidelines for Python code that is easy to understand and maintain.

The target audience are Python developers contributing to one of my projects, be it open source or commercial. It can also be of interest for people who are looking for a basis for their own guidelines.

This document is distributed under the CC BY 4.0 license.

Formatting

As a starting point for your own pre-commit hook, you can use pygount's .pre-commit-config.yaml.

Naming