Repository navigation
Fixed issue with the book editor where a runtime error occured when s… - #437
Merged
Merged
Conversation
…witching between pages
This was referenced Sep 23, 2026
noahpro99
added a commit
to kanyemckinney/codekids
that referenced
this pull request
Sep 24, 2026
CI installed ruff unpinned, so the 0.16.x release -- which ships a much wider default rule set -- started failing check-all on unchanged backend code (117 errors, e.g. on PR codekids-vt#437, which only touches the frontend). Rather than pin ruff back, adopt the new defaults: - CI installs backend tooling with uv (uv sync --locked + uv run) instead of pip, so CI uses exactly the versions in uv.lock. This also drops the build/lib/ copy pip left behind, which was being linted twice. - Bump ruff 0.14.3 -> 0.16.8, black 25.9.0 -> 26.5.1, pyright 1.1.407 -> 1.1.414 in the lockfile. - Fix the 60 findings: import sorting (I001), Optional[X]/List[X] -> X | None / list[X] (UP045/UP006/UP035), set comprehension (C401), bool(user) (SIM103), merged nested if (SIM102), f-string conversion flag (RUF010), Annotated[UploadFile, File()] instead of a call in a default arg (B008), timezone-aware datetime.now(timezone.utc) (DTZ005), and data_migrate.py reads books.json outside the async path (ASYNC230) with next(..., None) lookup (RUF015). - Ignore BLE001 under src/routers/, where handlers intentionally catch Exception to return an HTTP error instead of an unhandled 500. - README: document the checks as uv run.
noahpro99
added a commit
to kanyemckinney/codekids
that referenced
this pull request
Sep 24, 2026
The Dockerfile ran 'pip install .' with only pyproject.toml copied, so every image build resolved the newest versions matching the constraints. CI now installs from uv.lock, so prod and CI had no mechanism to stay on the same versions -- the same drift that broke check-all on PR codekids-vt#437. Install with 'uv sync --locked --no-dev --no-install-project' instead. --no-install-project matches the previous behaviour: only dependencies were installed at that layer, and the app runs from the source copied afterwards. Verified by building the image and running it against postgres:16: prisma generate succeeds, uvicorn starts, GET /openapi.json returns 200, and fastapi resolves to 0.141.1 -- the same version 'pip install .' produced today and the one pinned in uv.lock.
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.
…witching between pages