Merged
Conversation
Replace Black with Ruff for code formatting across pyproject.toml, Makefile, and all Python source files. Uses Ruff defaults (88 char line length) with no custom configuration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
MaxGhenis
added a commit
that referenced
this pull request
Apr 17, 2026
#40 switched the repo's formatter from `black -l 79` to `ruff format` (default 88-char line length) and updated the Makefile, but the reusable lint workflow still invoked `lgeiger/black-action` with `. -l 79 --check`. Since ruff-formatted files don't pass `black -l 79`, every PR's `lint` check has been failing since #40. Replace the black action with a `uvx ruff format --check .` run, matching what `make format-check` would do locally. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2 tasks
MaxGhenis
added a commit
that referenced
this pull request
Apr 17, 2026
* Delete CRITICAL_TEMPERATURE_BUG.md This file documented a temperature-scaling bug in `HardConcrete._deterministic_gates` and pointed readers at a "gold standard" reference file `l0_louizos_improved_gate.py` that does not actually exist in the repository. The bug itself is fixed by #41 (the `sigmoid(qz_logits / temperature)` change in `l0/distributions.py`), and the three standalone modules (`distributions.py`, `calibration.py`, `sparse.py`) are now consistent. Remove the stale doc now that its content is either obsolete or misleading. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * Switch CI lint job from black to ruff #40 switched the repo's formatter from `black -l 79` to `ruff format` (default 88-char line length) and updated the Makefile, but the reusable lint workflow still invoked `lgeiger/black-action` with `. -l 79 --check`. Since ruff-formatted files don't pass `black -l 79`, every PR's `lint` check has been failing since #40. Replace the black action with a `uvx ruff format --check .` run, matching what `make format-check` would do locally. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ruff>=0.9.0) in dev dependencies[tool.black]configuration section frompyproject.tomlMakefileformat target:black . -l 79->ruff format .Test plan
ruff format --check .passes (21 files formatted)Generated with Claude Code