Skip to content

Replace black and flake8 with ruff#218

Open
gomezzz wants to merge 2 commits into
build/pyproject-migrationfrom
ci/ruff-lint-format
Open

Replace black and flake8 with ruff#218
gomezzz wants to merge 2 commits into
build/pyproject-migrationfrom
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
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