R341 Configure a new Python project’s checks from the reference configuration
When you create a Python project or add one to a repository, configure its formatter, linter, docstring checker and type checker with the settings of the reference configuration that the rules in force name, and for each setting you leave out or change, say why in the repository’s instructions or a decision record, in that change or before it.
Reason
A mistake that a linter rule catches costs nothing once the rule is on, and a review or a person’s reminder each time it is off (Art. X §2). A project set up from memory turns on fewer rules than the reference without anyone choosing to; a written reason makes a gap a choice that a reviewer can weigh.
Verification
The reference configuration is one that a rule enabled in the rule set names, with where to find it; where no enabled rule names one, this rule requires nothing. A project is created or added by the change that adds its project file, such as pyproject.toml; a member added to an existing workspace whose root holds these settings takes them from there. Turning on more rules than the reference, or adding a stricter setting, is not leaving out or changing a setting.
Violated when a change creates a Python project or adds one to a repository, and a setting of the reference configuration for the formatter, linter, docstring checker or type checker is missing from the configuration that applies to the project or has another value, with no reason for it written in the repository’s instructions or a decision record in that change or before it.