Skip to content

Replace black and flake8 with ruff - #218

Merged
gomezzz merged 2 commits into
mainfrom
ci/ruff-lint-format
Aug 22, 2026
Merged

gomezzz merged 2 commits into
mainfrom
ci/ruff-lint-format

Conversation

@gomezzz

@gomezzz gomezzz commented Jul 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Removes autoblack.yml and the flake8 lint job; adds formatting.yml that runs ruff check + ruff format --check (via astral-sh/ruff-action), and swaps the severe-error gate in run_tests.yml from flake8 to ruff.
  • Applies ruff format and ruff check --fix (E/F/W + import sorting) across the package and tests. This also fixes the pre-existing E302 failure (central_body.py) that had CI red on main.
  • Notebooks stay excluded (extend-exclude), matching the previous black jupyter: false setup.

Verified locally with ruff 0.14.6: ruff check . and ruff format --check . both pass on all tracked files.

Test plan

  • ruff check . — all checks pass
  • ruff format --check . — all files formatted
  • CI: Ruff Lint and Format Check green

⚠️ Stacked on #217 (pyproject migration) — review/merge that first. Base is build/pyproject-migration.

Drop autoblack.yml and the flake8 lint job; add formatting.yml running
'ruff check' and 'ruff format --check' via astral-sh/ruff-action, and
swap the severe-error gate in run_tests.yml from flake8 to ruff.

Apply 'ruff format' and 'ruff check --fix' (import sorting) across the
package and tests. Notebooks stay excluded, matching the previous
black 'jupyter: false' setup.
@gomezzz gomezzz mentioned this pull request Jul 24, 2026
2 tasks
Base automatically changed from build/pyproject-migration to main August 22, 2026 08:14
@gomezzz
gomezzz merged commit 3e28ebc into main Aug 22, 2026
1 of 2 checks passed
@gomezzz
gomezzz deleted the ci/ruff-lint-format branch August 22, 2026 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant