R340 Read the Python guide before writing Python or setting up a Python project

On by default

Before you write, change or review Python code, or set up a Python project, read the Python guide that the rules in force name, together with the parts it names for that work, and follow it.

Reason

A guide holds what a person has already settled about Python: the traps a linter does not catch, how a project is laid out and which checks it turns on. An agent that does not read it makes the same mistakes again, and the person has to point them out each time (Art. III).

Verification

The guide is a skill or a document that a rule enabled in the rule set names, with where to find it and which of its parts serve which work; where no enabled rule names one, this rule requires nothing. Setting up a Python project includes adding one to a repository that already has others.

Violated when an agent writes, changes or reviews Python code, or sets up a Python project, without having first read the guide and the parts it names for that work, or when the work does what the guide lists as a fault and gives a fix for.

Provisions of the constitution it cites

Relations

Parent
R339 Python
Requires
none
Conflicts with
none

Metadata

ID
340
Revision
1
Kind
rule
Status
trial
Slug
read-the-python-guide
Default level
project
Constitution revisions
>=1
Check
none
Default
on
Uses
Instructions instructions
Original language
English en
Translations
Chinese zh