Skip to content

enable ruff check on fastapi api files in prep for migration#11940

Merged
RayBB merged 2 commits intomasterfrom
ruffcheck/openlibrary
Feb 26, 2026
Merged

enable ruff check on fastapi api files in prep for migration#11940
RayBB merged 2 commits intomasterfrom
ruffcheck/openlibrary

Conversation

@RayBB
Copy link
Copy Markdown
Collaborator

@RayBB RayBB commented Feb 26, 2026

Closes #
All this PR does is enable ruff check on a few files. The rest of the changes are automated.
I'm going to be doing some big work on the api.py file and to make the best use of AI it would help a lot to have ruff formatting these files (it's much faster a bit more compact).
Since I'll also likely touch quite some tests in reworking api.py and there are currently no open PRs for any tests I'm also adding them.

Technical

To check what files have no open PRs I use
gh pr list --limit 1000 --state open --json number,title,files,url,isDraft,updatedAt,author
and
comm -23 <(find . -type f -name "*.py" -exec dirname {} \; | sed 's|^\./||' | sort -u) <(jq -r '.[] | select(.isDraft == false) | .files[].path | select(endswith(".py"))' pr_cache.json | xargs dirname | sort -u)

Then sanity check in the raw json itself from gh.

Testing

Screenshot

Stakeholders

@RayBB RayBB changed the title enable ruff check on fastapi api files enable ruff check on fastapi api files in prop of migration Feb 26, 2026
@RayBB RayBB changed the title enable ruff check on fastapi api files in prop of migration enable ruff check on fastapi api files in prep for migration Feb 26, 2026
@RayBB RayBB merged commit 8ae9ccf into master Feb 26, 2026
7 of 8 checks passed
@RayBB RayBB deleted the ruffcheck/openlibrary branch February 26, 2026 09:30
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