π The fast, Pythonic way to build MCP servers and clients.
Fix linting
Jeremiah Lowinc623b5110df9
diff --git a/pyproject.toml b/pyproject.tomlindex c5941af0c..bee8ef757 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -114,3 +114,5 @@ extend-select = ["I", "UP"][tool.ruff.lint.per-file-ignores]"__init__.py" = ["F401", "I001", "RUF013"]+# allow imports not at the top of the file+"src/fastmcp/__init__.py" = ["E402"]diff --git a/tests/deprecated/test_server_init_kwargs.py b/tests/deprecated/test_server_init_kwargs.pyindex 13401e261..ff2e1258a 100644--- a/tests/deprecated/test_server_init_kwargs.py+++ b/tests/deprecated/test_server_init_kwargs.py@@ -199,7 +199,7 @@ class TestDeprecatedServerInitKwargs:"""Test that None values for deprecated kwargs don't raise warnings."""with warnings.catch_warnings(record=True) as recorded_warnings:warnings.simplefilter("always")- server = FastMCP(+ FastMCP("TestServer",log_level=None,debug=None,@@ -290,10 +290,7 @@ class TestDeprecatedServerInitKwargs:with warnings.catch_warnings(record=True) as recorded_warnings:warnings.simplefilter("always")- def create_server_with_deprecated_kwargs():- return FastMCP("TestServer", log_level="DEBUG")-- server = create_server_with_deprecated_kwargs()+ FastMCP("TestServer", log_level="DEBUG")# Should have exactly one deprecation warningdeprecation_warnings = [