Skip to content

Fix 1840#1895

Merged
oberstet merged 2 commits into
crossbario:masterfrom
oberstet:fix_1840
Jul 1, 2026
Merged

Fix 1840#1895
oberstet merged 2 commits into
crossbario:masterfrom
oberstet:fix_1840

Conversation

@oberstet

@oberstet oberstet commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

fixes #1840

oberstet added 2 commits July 1, 2026 18:42
The check-typing recipe now runs `ruff check --select ANN,UP,TCH` (annotation
presence, pyupgrade modern syntax, TYPE_CHECKING imports) on src/autobahn/
before the ty check, so annotation/style regressions are caught in the CI
quality-checks job.

src/autobahn/ currently has ~3800 missing-annotation findings, so the ANN
codes (and the 3 TC00x currently present) are ratcheted via an explicit
--ignore allowlist to be removed module-by-module (crossbario#1839); every other UP and
TC rule is enforced immediately. Generated code (flatbuffers/, wamp/gen/,
message_fbs.py) is excluded via [tool.ruff] plus --force-exclude.

Deviation from the issue as written: the annotation rules are scoped to this
recipe via the command-line --select rather than the global
[tool.ruff.lint] select, because check-format runs `ruff check .` off that
config and would otherwise turn red with all ~3800 findings. The proposed
`required-imports = ["from __future__ import annotations"]` is also omitted
(it is the eager annotation-eval hazard behind crossbario#1878). Only the safe
[tool.ruff.lint.flake8-annotations] tuning was added to pyproject.toml.

check-typing now also depends on (install-tools venv) so the venv ruff is
present when run standalone. Verified green end-to-end (ruff + ty) on cpy311.

Note: This work was completed with AI assistance (Claude Code).
@oberstet oberstet merged commit 36aa406 into crossbario:master Jul 1, 2026
40 checks passed
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.

[CHORE] Add ruff annotation checks to check-typing recipe

1 participant