mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
Add loq file size limits and clean up type ignores (#2859)
This commit is contained in:
parent
84a43da289
commit
2b6a0faf1c
49 changed files with 815 additions and 973 deletions
292
loq.toml
292
loq.toml
|
|
@ -1,158 +1,42 @@
|
|||
# loq configuration - file size enforcement
|
||||
# Run `loq baseline` to update when files exceed limits
|
||||
|
||||
default_max_lines = 500
|
||||
default_max_lines = 1000
|
||||
respect_gitignore = true
|
||||
|
||||
exclude = [
|
||||
"**/uv.lock",
|
||||
".git/",
|
||||
"docs/",
|
||||
]
|
||||
exclude = ["**/uv.lock", ".git/**", "docs/**"]
|
||||
|
||||
[[rules]]
|
||||
path = "src/fastmcp/server/auth/oauth_proxy.py"
|
||||
max_lines = 2282
|
||||
path = "tests/**"
|
||||
max_lines = 1000
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/providers/test_local_provider_tools.py"
|
||||
max_lines = 1554
|
||||
|
||||
[[rules]]
|
||||
path = "tests/client/test_client.py"
|
||||
max_lines = 1438
|
||||
|
||||
[[rules]]
|
||||
path = "src/fastmcp/client/tasks.py"
|
||||
max_lines = 551
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/test_auth_integration.py"
|
||||
max_lines = 1242
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/test_dependencies.py"
|
||||
max_lines = 1046
|
||||
|
||||
[[rules]]
|
||||
path = "tests/prompts/test_prompt.py"
|
||||
max_lines = 552
|
||||
|
||||
[[rules]]
|
||||
path = "tests/client/test_elicitation.py"
|
||||
max_lines = 1132
|
||||
|
||||
[[rules]]
|
||||
path = "src/fastmcp/tools/tool_transform.py"
|
||||
max_lines = 954
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/middleware/test_tool_injection.py"
|
||||
max_lines = 509
|
||||
path = "tests/server/auth/test_oauth_proxy.py"
|
||||
max_lines = 1899
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/middleware/test_middleware.py"
|
||||
max_lines = 1066
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/auth/providers/test_azure.py"
|
||||
max_lines = 809
|
||||
|
||||
[[rules]]
|
||||
path = "docs/servers/auth/oauth-proxy.mdx"
|
||||
max_lines = 590
|
||||
|
||||
[[rules]]
|
||||
path = "src/fastmcp/server/context.py"
|
||||
max_lines = 1272
|
||||
|
||||
[[rules]]
|
||||
path = "tests/test_mcp_config.py"
|
||||
max_lines = 930
|
||||
|
||||
[[rules]]
|
||||
path = "docs/deployment/http.mdx"
|
||||
max_lines = 736
|
||||
|
||||
[[rules]]
|
||||
path = "src/fastmcp/server/auth/providers/jwt.py"
|
||||
max_lines = 527
|
||||
|
||||
[[rules]]
|
||||
path = "src/fastmcp/server/dependencies.py"
|
||||
max_lines = 908
|
||||
|
||||
[[rules]]
|
||||
path = "docs/changelog.mdx"
|
||||
max_lines = 2280
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/tasks/test_task_mount.py"
|
||||
max_lines = 965
|
||||
|
||||
[[rules]]
|
||||
path = "src/fastmcp/utilities/json_schema_type.py"
|
||||
max_lines = 648
|
||||
|
||||
[[rules]]
|
||||
path = "tests/utilities/openapi/test_schemas.py"
|
||||
max_lines = 641
|
||||
|
||||
[[rules]]
|
||||
path = "src/fastmcp/utilities/openapi/schemas.py"
|
||||
max_lines = 593
|
||||
|
||||
[[rules]]
|
||||
path = "src/fastmcp/server/middleware/caching.py"
|
||||
max_lines = 523
|
||||
|
||||
[[rules]]
|
||||
path = "docs/servers/middleware.mdx"
|
||||
max_lines = 846
|
||||
|
||||
[[rules]]
|
||||
path = "tests/contrib/test_component_manager.py"
|
||||
max_lines = 767
|
||||
|
||||
[[rules]]
|
||||
path = "src/fastmcp/server/auth/auth.py"
|
||||
max_lines = 558
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/providers/test_local_provider_resources.py"
|
||||
max_lines = 974
|
||||
|
||||
[[rules]]
|
||||
path = "docs/deployment/server-configuration.mdx"
|
||||
max_lines = 640
|
||||
|
||||
[[rules]]
|
||||
path = "tests/cli/test_run.py"
|
||||
max_lines = 628
|
||||
|
||||
[[rules]]
|
||||
path = "tests/utilities/openapi/test_transitive_references.py"
|
||||
max_lines = 842
|
||||
|
||||
[[rules]]
|
||||
path = "src/fastmcp/resources/template.py"
|
||||
max_lines = 576
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/providers/openapi/test_comprehensive.py"
|
||||
max_lines = 741
|
||||
|
||||
[[rules]]
|
||||
path = "tests/client/test_sampling.py"
|
||||
max_lines = 1002
|
||||
|
||||
[[rules]]
|
||||
path = "tests/resources/test_resource_template.py"
|
||||
max_lines = 1009
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/providers/test_local_provider.py"
|
||||
max_lines = 784
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/middleware/test_caching.py"
|
||||
max_lines = 617
|
||||
path = "tests/tools/test_tool_transform.py"
|
||||
max_lines = 1748
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/test_mount.py"
|
||||
|
|
@ -163,153 +47,57 @@ path = "tests/utilities/test_inspect.py"
|
|||
max_lines = 1111
|
||||
|
||||
[[rules]]
|
||||
path = "src/fastmcp/utilities/openapi/parser.py"
|
||||
max_lines = 821
|
||||
|
||||
[[rules]]
|
||||
path = "docs/python-sdk/fastmcp-server-context.mdx"
|
||||
max_lines = 550
|
||||
|
||||
[[rules]]
|
||||
path = "src/fastmcp/server/providers/local_provider.py"
|
||||
max_lines = 962
|
||||
|
||||
[[rules]]
|
||||
path = "tests/client/test_notifications.py"
|
||||
max_lines = 556
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/middleware/test_logging.py"
|
||||
max_lines = 670
|
||||
|
||||
[[rules]]
|
||||
path = "tests/utilities/test_json_schema.py"
|
||||
max_lines = 543
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/auth/test_jwt_provider.py"
|
||||
max_lines = 1101
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/auth/test_oauth_proxy.py"
|
||||
max_lines = 1899
|
||||
|
||||
[[rules]]
|
||||
path = "tests/utilities/test_types.py"
|
||||
max_lines = 673
|
||||
|
||||
[[rules]]
|
||||
path = "docs/servers/resources.mdx"
|
||||
max_lines = 731
|
||||
|
||||
[[rules]]
|
||||
path = "src/fastmcp/client/client.py"
|
||||
max_lines = 1722
|
||||
|
||||
[[rules]]
|
||||
path = "src/fastmcp/server/providers/proxy.py"
|
||||
max_lines = 823
|
||||
|
||||
[[rules]]
|
||||
path = "docs/python-sdk/fastmcp-server-server.mdx"
|
||||
max_lines = 999
|
||||
path = "tests/resources/test_resource_template.py"
|
||||
max_lines = 1009
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/auth/test_oauth_consent_flow.py"
|
||||
max_lines = 1056
|
||||
|
||||
[[rules]]
|
||||
path = "README.md"
|
||||
max_lines = 515
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/providers/proxy/test_proxy_server.py"
|
||||
max_lines = 729
|
||||
|
||||
[[rules]]
|
||||
path = "tests/tools/test_tool_transform.py"
|
||||
max_lines = 1748
|
||||
|
||||
[[rules]]
|
||||
path = "src/fastmcp/utilities/ui.py"
|
||||
max_lines = 626
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/auth/test_oidc_proxy.py"
|
||||
max_lines = 878
|
||||
|
||||
[[rules]]
|
||||
path = "docs/patterns/cli.mdx"
|
||||
max_lines = 581
|
||||
|
||||
[[rules]]
|
||||
path = "tests/cli/test_cli.py"
|
||||
max_lines = 618
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/tasks/test_task_return_types.py"
|
||||
max_lines = 662
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/providers/test_local_provider_tools.py"
|
||||
max_lines = 1554
|
||||
|
||||
[[rules]]
|
||||
path = "src/fastmcp/server/providers/fastmcp_provider.py"
|
||||
max_lines = 586
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/middleware/test_error_handling.py"
|
||||
max_lines = 652
|
||||
path = "src/fastmcp/server/server.py"
|
||||
max_lines = 2942
|
||||
|
||||
[[rules]]
|
||||
path = "tests/tools/test_tool.py"
|
||||
max_lines = 1923
|
||||
|
||||
[[rules]]
|
||||
path = "docs/python-sdk/fastmcp-client-client.mdx"
|
||||
max_lines = 704
|
||||
path = "tests/client/test_elicitation.py"
|
||||
max_lines = 1132
|
||||
|
||||
[[rules]]
|
||||
path = "docs/servers/tools.mdx"
|
||||
max_lines = 1040
|
||||
|
||||
[[rules]]
|
||||
path = "src/fastmcp/server/server.py"
|
||||
max_lines = 2942
|
||||
|
||||
[[rules]]
|
||||
path = "tests/deprecated/test_import_server.py"
|
||||
max_lines = 714
|
||||
|
||||
[[rules]]
|
||||
path = "src/fastmcp/client/transports.py"
|
||||
max_lines = 1208
|
||||
|
||||
[[rules]]
|
||||
path = "docs/docs.json"
|
||||
max_lines = 589
|
||||
|
||||
[[rules]]
|
||||
path = "src/fastmcp/cli/cli.py"
|
||||
max_lines = 957
|
||||
path = "src/fastmcp/client/client.py"
|
||||
max_lines = 1722
|
||||
|
||||
[[rules]]
|
||||
path = "tests/utilities/test_json_schema_type.py"
|
||||
max_lines = 1584
|
||||
|
||||
[[rules]]
|
||||
path = "docs/servers/context.mdx"
|
||||
max_lines = 650
|
||||
path = "src/fastmcp/server/auth/oauth_proxy.py"
|
||||
max_lines = 2282
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/auth/test_authorization.py"
|
||||
max_lines = 604
|
||||
path = "src/fastmcp/client/transports.py"
|
||||
max_lines = 1208
|
||||
|
||||
[[rules]]
|
||||
path = "docs/development/v3-notes/v3-features.mdx"
|
||||
max_lines = 536
|
||||
path = "tests/server/test_dependencies.py"
|
||||
max_lines = 1046
|
||||
|
||||
[[rules]]
|
||||
path = "src/fastmcp/tools/function_tool.py"
|
||||
max_lines = 594
|
||||
path = "tests/client/test_sampling.py"
|
||||
max_lines = 1002
|
||||
|
||||
[[rules]]
|
||||
path = "tests/server/auth/test_jwt_provider.py"
|
||||
max_lines = 1101
|
||||
|
||||
[[rules]]
|
||||
path = "docs/servers/tools.mdx"
|
||||
max_lines = 1040
|
||||
|
||||
[[rules]]
|
||||
path = "docs/changelog.mdx"
|
||||
max_lines = 2280
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue