Page MenuHomePhabricator

Decision request - Update and expand on coding standards for the tools-platform team
Open, MediumPublic

Description

Problem

Having a very loose set of coding standards, ends up sometimes getting newcomers merge requests bouncing on things that could have been addressed by them, making the contribution process less welcoming than it could be.

This task is to do a second pass to the current coding standards, focusing on the new tools-platform team owned code (see https://wikitech.wikimedia.org/wiki/Wikimedia_Cloud_Services_team/Ownership), and publish it as reference in wikitech.

Focus should be put on automating as many of those standards in checks (ex. adding new rules to ruff/pre-commit/etc.), and leaving the most

Related materials

Constraints and risks

  • Risk of endless discussion
  • Limiting it to the toolforge repositories and code on gitlab for now, as they are more heterogeneous and need less parties to agree on them.
  • <add more here>

Decision record

In progress

https://wikitech.wikimedia.org/wiki/Wikimedia_Cloud_Services_team/EnhancementProposals/Decision_record_T408782_Update_and_expand_on_coding_standards_for_the_tools_platform_team

Options

Given that we have a common tooling and linting flows in toolforge repos already, this round we can focus more on the practices themselves.

So @dcaro proposes the following process:

Option 1

Some explanation of option 1

For this option we also tested this and that and we found this.

Pros:

  • Pro 1

Cons:

  • Con 1

...

Event Timeline

Restricted Application added a subscriber: • Aklapper. · View Herald Transcript
dcaro triaged this task as Medium priority.Oct 30 2025, 9:04 AM
dcaro renamed this task from Decision request template - Update and expand on python coding standards for toolforge to Decision request - Update and expand on python coding standards for toolforge.Oct 30 2025, 9:23 AM
dcaro updated the task description. (Show Details)
dcaro updated the task description. (Show Details)
dcaro renamed this task from Decision request - Update and expand on python coding standards for toolforge to Decision request - Update and expand on coding standards for toolforge.Oct 30 2025, 9:55 AM
dcaro updated the task description. (Show Details)
dcaro renamed this task from Decision request - Update and expand on coding standards for toolforge to Decision request - Update and expand on coding standards for the tools-platform team.Sep 10 2026, 10:09 AM
dcaro updated the task description. (Show Details)