Skip to content

Format web and Python sources, add security and accessibility lint, prepare v0.2.0-beta.4 - #79

Merged
hyperdrivebeep merged 1 commit into
mainfrom
public-20261112g
Nov 12, 2026
Merged

hyperdrivebeep merged 1 commit into
mainfrom
public-20261112g

Conversation

@hyperdrivebeep

Copy link
Copy Markdown
Owner

Code hygiene from the post-beta audit, then the version bump for v0.2.0-beta.4. Nothing a person sees on screen changes.

Formatting

  • The web sources are formatted with prettier 3.9.10 (width 100), and pnpm lint now runs prettier --check. The built bundle has the same CSS and the same screen text. Five web files that end up over the 600-line budget once formatted are frozen at their current size.
  • 98 Python files are formatted with ruff format; their syntax trees are unchanged. CI's checks job and the local lint task now run ruff format --check, and a test keeps both steps in place.

Lint rules

  • ruff: S110, S112 (silent except), S310 (unchecked URL scheme) and S608 (SQL built from strings). The 21 hits all put table or column names into a statement; each is marked with its reason, and tests and migrations have a per-file exception.
  • eslint: jsx-a11y recommended. Two hits are fixed (a table row was an article; the dimmed page behind the project drawer is now role="presentation"). Six are line exceptions with their reasons.

Clean-up

  • Removes the unused preview-timeline entry point.
  • uiText also recognises notices that were saved in Japanese.
  • Lowers four size baselines to the formatted line counts.

Release

  • Version 0.2.0b4 in pyproject, the package, the web and root package.json, uv.lock, the foundation test and BETA.md.
  • Adds docs/releases/v0.2.0-beta.4.md.

Validation

  • Python formatting: every reformatted file was checked to parse to the same syntax tree as before.
  • Web formatting: running prettier 3.9.10 again with the same config gives the same files.
  • Local runs pass: tsc, eslint with prettier --check, vitest (151 files, including the three Python contract files), vite build, ruff check, ruff format --check, structure checks, and the Python fast suite (5,017 tests).
  • Not run locally: basedpyright, because the local environment lacks optional packages. CI runs it.

@hyperdrivebeep
hyperdrivebeep merged commit 61a9af2 into main Nov 12, 2026
22 checks passed
@hyperdrivebeep
hyperdrivebeep deleted the public-20261112g branch November 12, 2026 12:33
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