Skip to content

fix: manual ruff/mypy corrections (split 3/6 of #125)#132

Merged
cryptoxdog merged 1 commit into
mainfrom
fix/ruff-mypy-manual
Jul 23, 2026
Merged

fix: manual ruff/mypy corrections (split 3/6 of #125)#132
cryptoxdog merged 1 commit into
mainfrom
fix/ruff-mypy-manual

Conversation

@cryptoxdog

Copy link
Copy Markdown
Collaborator

Summary

Manual (non-autofixable) Ruff and MyPy remediation extracted from #125 (commits f4cca2f, a539a17, 0916321, eb5e8af).

Scope (21 files)

  • Manual Ruff fixes across engine/ and affected tests
  • MyPy errors blocking the ci-quality lint gate
  • Wrong kwargs in GraphSyncClient envelope builder
  • Wrong DomainPackLoader kwarg in tests/security/test_injection.py
  • pyproject.toml: per-file N818 ignore for chassis/errors.py (stable serialized error-type name)

Local verification

  • ruff format --check — 20 files pass
  • ruff check — all pass
  • mypy engine/ --config-file=pyproject.toml --ignore-missing-imports --exclude chassis — no issues in 131 files

Notes

@cursor

cursor Bot commented Jul 22, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@github-actions

Copy link
Copy Markdown

⚠️ Large PR Warning
Lines changed: 690
Warning threshold: 300 lines
Consider splitting for easier review

📋 Best Practices for Large Changes

  1. Refactoring + Features: Separate into 2 PRs
  2. Multiple Features: One PR per feature
  3. Database + Code: Separate migration from logic
  4. Generated Code: Separate from manual changes

This PR meets minimum requirements but is larger than recommended.

import engine.gates.compiler as gc
import engine.sync.generator as sg
import engine.scoring.assembler as sa
import engine.sync.generator as sg
Non-autofixable remediation extracted from #125 (commits f4cca2f,
a539a17, 0916321, eb5e8af):

- manual Ruff fixes across engine/ and affected tests
- mypy errors blocking the ci-quality lint gate (outcomes engine,
  P2_9_llm_schemas, and related modules)
- wrong keyword arguments in GraphSyncClient envelope builder
- wrong DomainPackLoader keyword argument in test_injection.py
- pyproject: per-file N818 ignore for chassis/errors.py (stable
  serialized error-type name; renaming would break wire format)

Local verification: ruff format --check (20 files pass), ruff check
(all pass), mypy engine/ --config-file=pyproject.toml
--ignore-missing-imports --exclude chassis (no issues, 131 files).
@cryptoxdog
cryptoxdog force-pushed the fix/ruff-mypy-manual branch from 79c36af to 908811d Compare July 22, 2026 21:20
@github-actions

Copy link
Copy Markdown

Too Many Files Changed
Changed: 75 files
Limit: 50 files
Action Required: Split into multiple focused PRs

PR Too Large
Lines changed: 1377
Limit: 1000 lines
Action Required: Break into smaller, atomic PRs

📋 Best Practices for Large Changes

  1. Refactoring + Features: Separate into 2 PRs
  2. Multiple Features: One PR per feature
  3. Database + Code: Separate migration from logic
  4. Generated Code: Separate from manual changes

🚫 This PR is blocked from merging until size limits are met.

@cryptoxdog
cryptoxdog changed the base branch from main to style/ruff-mechanical-tests July 22, 2026 21:20
@sonarqubecloud

Copy link
Copy Markdown

@cryptoxdog
cryptoxdog changed the base branch from style/ruff-mechanical-tests to main July 23, 2026 00:51
@cryptoxdog
cryptoxdog merged commit ecfab67 into main Jul 23, 2026
11 of 21 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.

1 participant