Repository navigation
Chore: Enable ruff E402 and E722; clarify mcp_proxy_requests_total docs - #707
Merged
Merged
Conversation
Fix misplaced imports; exempt scripts/* (they load .env before importing app modules) and noqa the intentional late imports in registry/tests/conftest.py and test_faiss_service.py.
No existing violations.
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.
registry_pkgs/models/a2a_agent.pyand five test files. In four of those tests an import sat above the module docstring, which also stopped the docstring from counting as the module docstring.scripts/*inper-file-ignores. The scripts runload_dotenv()or set environment variables before importing app modules that read settings when imported.# noqa: E402to the deliberately late imports inregistry/tests/conftest.py(test env setup must run first) andregistry/tests/unit/search/test_faiss_service.py(sys.modulesmocking must run first).except): there were no existing violations.mcp_proxy_requests_totalrow now says the metric counts requests the direct proxy handled, not only those it sent. Requests that need downstream authorization are counted asinput_requiredand outbound-auth errors asfailure. Other refusals before forwarding (ACL, consent, transport, Accept header) are not counted.uv run poe checkpasses, anduv run poe test-allpasses in every workspace.