Check Python formatting with YAPF in CI #40

Merged
mike merged 3 commits from mike-bot/fix-issue-33 into master 2026-11-25 11:03:44 -05:00 AGit
Collaborator

The existing Nix lint check now rejects Python formatting differences and prints a unified diff without editing source files.

The development shell and CI use the same Nix-pinned YAPF and checked-in Google style. The formatter covers the application, tests, and Python development scripts. The README shows how to apply formatting locally and documents the pinned formatter's Python 3.12 syntax limitations.

Fixes #33

The existing Nix lint check now rejects Python formatting differences and prints a unified diff without editing source files. The development shell and CI use the same Nix-pinned YAPF and checked-in Google style. The formatter covers the application, tests, and Python development scripts. The README shows how to apply formatting locally and documents the pinned formatter's Python 3.12 syntax limitations. Fixes #33
Apply Google's YAPF style to the application, tests, and development
scripts without changing Python behavior. Keep the mechanical changes
separate from the lint rule so reviewers can inspect the rule on its own.

Refs #33

AI-Model: openai/gpt-6.2-sol-fast
Reject unformatted Python in the Nix lint check
All checks were successful
ci/crow/pr/build Pipeline was successful
b6532f7a62
Previously, lint checked Python imports and other rules but did not
check formatting, so inconsistent formatting could pass CI.

Use Nix-pinned YAPF and the checked-in Google style in the development
shell and CI. The lint check shows a unified diff and fails without
rewriting any files. Developers can run the same formatter in place.

Refs #33

AI-Model: openai/gpt-6.2-sol-fast
mike-bot changed title from Reject unformatted Python in the Nix lint check to WIP: Check Python formatting with YAPF in CI 2026-11-25 10:51:16 -05:00
Document which Python 3.12 syntax YAPF rejects
All checks were successful
ci/crow/pr/build Pipeline was successful
b81739d348
Python 3.12 accepts type alias statements and f-strings that reuse
quotes, but the pinned formatter rejects both. Make that limitation
visible next to the formatting command so developers can recognize
these parser errors.

Refs #33

AI-Model: openai/gpt-6.2-sol-fast
mike-bot changed title from WIP: Check Python formatting with YAPF in CI to Check Python formatting with YAPF in CI 2026-11-25 10:54:32 -05:00
mike-bot force-pushed mike-bot/fix-issue-33 from b81739d348
All checks were successful
ci/crow/pr/build Pipeline was successful
to cc29f2c8d5
All checks were successful
ci/crow/pr/build Pipeline was successful
2026-11-25 11:02:29 -05:00
Compare
mike merged commit 41fce7df4d into master 2026-11-25 11:03:44 -05:00
Sign in to join this conversation.
No reviewers
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!40
No description provided.