Repository navigation
Apply the repo formatter to 26 files merged without it - #14817
Conversation
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
… in #14822 (#14852) pre-commit.ci fails `ruff-format-with-kwargs` again on PRs queued after 00:36 UTC (#14834, #14835, #14836, #14842, #14845): `studio/backend/tests/test_video_stream_encode.py` was merged in #14822 without the formatter, so every PR's all-files run rewrites it. Same class as #14817. `python scripts/run_ruff_format.py` (the hook's entry point, `ruff==0.6.9`) applied to that one file. The AST is identical before and after, `ruff check` passes, and a full run of the hook over every tracked Python file on this branch changes nothing else.
… (#14878) Two files merged at 02:46 UTC without the repo formatter, so pre-commit.ci's `ruff-format-with-kwargs` hook (which runs on all files) will rewrite them on every PR queued after that: - `studio/install_python_stack.py` from #14834 - `studio/backend/tests/test_diffusion_prequant_cache.py` from #14819 Same class as #14817 and #14852. `python scripts/run_ruff_format.py` (the hook's entry point, `ruff==0.6.9`) applied to those two files. Both parse to identical ASTs before and after, `ruff check` passes, and a full run of the hook over every tracked Python file on this branch changes nothing else.
… (#14885) Two files merged without the repo formatter, so pre-commit.ci's `ruff-format-with-kwargs` hook (which runs on all files) rewrites them on every PR queued after: - `studio/backend/tests/test_diffusion_learned_peaks.py` from #14821 (03:15 UTC) - `tests/test_fp8_scale_dequant_one_pass.py` from #14886 (03:49 UTC), folded in while this was in review Same class as #14817, #14852 and #14878. `python scripts/run_ruff_format.py` (the hook's entry point, `ruff==0.6.9`) applied to those two files. Both parse to identical ASTs before and after, `ruff check` passes, and a full run of the hook over every tracked Python file on this branch changes nothing else.
`unsloth/device_type.py` and `tests/test_xpu_native_bf16.py` merged in #14769 (04:41 UTC) without the repo formatter, so pre-commit.ci's `ruff-format-with-kwargs` hook (which runs on all files) rewrites them on every PR queued after that. Same class as #14817, #14852, #14878 and #14885. `python scripts/run_ruff_format.py` (the hook's entry point, `ruff==0.6.9`) applied to those two files. Both parse to identical ASTs before and after, `ruff check` passes, and a full run of the hook over every tracked Python file on this branch changes nothing else.
(#14930) Files merged without the repo formatter, so pre-commit.ci's `ruff-format-with-kwargs` hook (which runs on all files) rewrites them on every PR queued after: - `tests/test_fp8_scale_dequant_one_pass.py`: formatted in #14885, then changed again by #14913 (05:27 UTC) - `unsloth/models/fsdp2_save.py`, `tests/test_fsdp2_save_gloo.py`, `tests/test_fsdp2_merged_save_memory_cuda.py`: from #14823 (05:46 UTC), folded in while this was in review Same class as #14817, #14852, #14878, #14885 and #14908. `python scripts/run_ruff_format.py` (the hook's entry point, `ruff==0.6.9`) applied to those four files. Each parses to an identical AST before and after, `ruff check` passes, and a full run of the hook over every tracked Python file on this branch changes nothing else.
…14963) `studio/backend/utils/security/dataset_media.py` merged in #14840 (09:00 UTC) without the repo formatter, so pre-commit.ci's `ruff-format-with-kwargs` hook (which runs on all files) rewrites it on every PR queued after that. Same class as #14817, #14852, #14878, #14885, #14908 and #14930. `python scripts/run_ruff_format.py` (the hook's entry point, `ruff==0.6.9`) applied to that one file. The AST is identical before and after, `ruff check` passes, and a full run of the hook over every tracked Python file on this branch changes nothing else.
pre-commit.ci fails
ruff-format-with-kwargson every open PR (#14806, #14805, #14803, #14790, #14785, #14781, #14780, #14777, #14776, #14775, #14774, #14773, #14772, #14770, #14769, #14768, and others): "files were modified by this hook". pre-commit.ci runs the hooks on all files, and 20 files on main (26 by the time this lands) are not in the formatter's output, so every PR is reformatted outside its own diff. Where pre-commit.ci can push, its autofix commit drags those unrelated files into the PR (for example #14790's touchestests/test_block_compile.py,tests/test_bnb_integration_compile.pyandunsloth/models/_utils.py).The drift came in with PRs merged today, among them #14702, #14751, #14759, #14784, #14786, #14787, #14788, #14791 and the FP8 block decode, GRPO routing replay, 4-bit decode, compiled blocks and MoE LoRA target changes.
Change
python scripts/run_ruff_format.py(the hook's own entry point,ruff==0.6.9as pinned in.pre-commit-config.yaml) applied to those 20 files, plus 6 more from #14739, #14779 and #14806, which merged while this was open. Formatting only.Verification
ruff checkpasses on the changed files;tests/test_formatter_fixed_point.pypasses (16).Open PRs pick this up on their next pre-commit.ci run after merging main.