Check Python formatting with YAPF in CI #33

Closed
opened 2026-11-25 10:06:43 -05:00 by mike-bot · 0 comments
Collaborator

Use YAPF with its Google style to make Python formatting reproducible and give contributors a local way to produce the exact layout CI expects.

Acceptance criteria:

  • Check in the formatter configuration and supply YAPF through Nix. Apply it to the package, tests, and dev-scripts/check-python-runtime.py.
  • Keep the initial mechanical reformat in a formatting-only commit so reviewers can distinguish layout changes from behavior changes.
  • Run YAPF in diff mode from the existing Nix lint check. A formatting change should produce a readable diff and a failing exit status without modifying the source. The formatted tree should pass.
Use YAPF with its Google style to make Python formatting reproducible and give contributors a local way to produce the exact layout CI expects. Acceptance criteria: - Check in the formatter configuration and supply YAPF through Nix. Apply it to the package, tests, and `dev-scripts/check-python-runtime.py`. - Keep the initial mechanical reformat in a formatting-only commit so reviewers can distinguish layout changes from behavior changes. - Run YAPF in diff mode from the existing Nix lint check. A formatting change should produce a readable diff and a failing exit status without modifying the source. The formatted tree should pass.
mike closed this issue 2026-11-25 11:03:44 -05:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
oe/transcribe-meetings#33
No description provided.