wiki:org/teams/MetricsTeam/MetricsPythonStyleGuide

Version 6 (modified by atagar, 3 years ago) (diff)

Update the tools section. Pylint is fine but there's better tools.

Table of Contents

  1. Additional Rules

Python Style Guide

As coding standard for python the Metrics Team uses PEP8. It governs the standard Python libraries and is chosen by many projects working with Python. There might be topics where we deviate from this standard. These will be added below.

Additional Rules

(empty)

Tools

Suggested tools are...

  • pyflakes - Static analysis checker. pylint can be useful too but pyflakes is more easily integrated into your test suite.
  • pycodestyle - Previously called pep8, this is a highly configurable style checker that by default validates compliance with the PEP8 specification.

Stem provides testing functions that make integrating with both of these easy.