Skip to content

Add ruff format check, expand lint rules, add codespell - #45

Merged
aarmey merged 3 commits into
mainfrom
linting
Sep 12, 2026
Merged

aarmey merged 3 commits into
mainfrom
linting

Conversation

@aarmey

@aarmey aarmey commented Sep 12, 2026

Copy link
Copy Markdown
Member

Summary

  • Add ruff format --check . as a CI step — previously only ruff check ran, so formatting wasn't actually enforced.
  • Expand the ruff rule set with PERF, UP, C4, RUF (skipped N/naming since it fights this codebase's deliberate math/AnnData conventions like X, B, T).
  • Add codespell as a dev dependency and CI step to catch typos in source/docs.
  • Fix a pre-existing SIM117 nested-with finding in tests/test_compression.py that the check surfaced.

Test plan

  • uv run ruff check . passes
  • uv run ruff format --check . passes
  • uv run codespell passes
  • uv run pytest -q — 1662 passed, 109 skipped

aarmey and others added 3 commits September 12, 2026 06:40
Enforce ruff format in CI (previously only ruff check ran), broaden
the ruff rule set with PERF/UP/C4/RUF, and add codespell to catch
typos in source and docs. Fixes a pre-existing SIM117 nested-with
finding surfaced by the check.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
elem.attrs["indices_dtype"] is typed too loosely for np.dtype()'s
overloads to resolve; cast it to str, matching the pattern already
used for the other reads in this function.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@aarmey
aarmey merged commit e9f1f1c into main Sep 12, 2026
6 checks passed
@aarmey
aarmey deleted the linting branch September 12, 2026 14:24
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