Skip to content

chore: add pre-commit hooks for the fast checks - #31

Merged
YokoAC merged 4 commits into
mainfrom
chore/pre-commit
Oct 18, 2026
Merged

YokoAC merged 4 commits into
mainfrom
chore/pre-commit

Conversation

@YokoAC

@YokoAC YokoAC commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner
  • pre-commit runs ruff, Biome and a userscript rebuild on commit; a stale dist/ stops the commit. Tests and mypy stay in CI. Setup: uv run pre-commit install, noted in AGENTS.md.
  • Dependency floors raised to the versions actually tested: aiohttp 3.14, pytest 9.1, pytest-cov 7.1, mypy 2.3, ruff 0.16. Installed versions unchanged.

YokoAC and others added 4 commits October 18, 2026 17:29
Runs ruff check, ruff format --check, Biome, and a rebuild of the
userscript bundle on commit. A stale dist/ is the slip that has happened
most often; the rebuild changes it and pre-commit stops the commit.

Hooks are local and call the project's own pinned tools, so versions
match the lockfiles and nothing is downloaded. Tests and mypy stay in CI.

pre-commit is a dev dependency, locked with the current uv: the older
local one dropped a macOS-only package the existing lock carries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aiohttp 3.14, pytest 9.1, pytest-cov 7.1, mypy 2.3. The old floors
allowed versions nothing here was ever checked against, mypy 1.x
included. Installed versions are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@YokoAC
YokoAC merged commit f1c3433 into main Oct 18, 2026
4 checks passed
@YokoAC
YokoAC deleted the chore/pre-commit branch October 18, 2026 15:46
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