mirror of
https://github.com/openai/codex.git
synced 2026-10-18 17:18:52 +00:00
Format Python scripts across the repository (#42109)
## Why The root Python formatting pass only covered `scripts/`, leaving Python utilities elsewhere in the repository outside `just fmt` and `just fmt-check`. ## What changed - Run the scripts Ruff formatter from the repository root. - Exclude `sdk/python`, which has its own formatter pass, and `codex-rs/vendor`. - Apply Ruff formatting to the newly covered Python files and update the formatter coverage test. GitOrigin-RevId: 73ac82b8bb9c713d589724f6c4f926399febb513
This commit is contained in:
@@ -272,11 +272,11 @@ def test_root_format_driver_covers_all_formatter_groups(
|
||||
)
|
||||
assert [group.commands[-1].args[-3:] for group in formatters[3:]] == [
|
||||
("ruff", "format", "sdk/python"),
|
||||
("ruff", "format", "scripts"),
|
||||
("ruff", "format", "."),
|
||||
]
|
||||
assert [group.commands[-1].args[-4:] for group in checks[3:]] == [
|
||||
("ruff", "format", "--check", "sdk/python"),
|
||||
("ruff", "format", "--check", "scripts"),
|
||||
("ruff", "format", "--check", "."),
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user