Close unclosed resources in the whole project (#267)

* Close resources

* Close all resources

* Update pyproject.toml

* Close all resources

* Close all resources

* try now...

* try to ignore this

* try again

* try adding one more..

* try now

* try now

* revert ci changes
This commit is contained in:
Marcelo Trylesinski 2025-03-13 11:59:45 +01:00 • committed by GitHub
commit 94d326dbf1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -67,6 +67,9 @@ packages = ["src/mcp"]
include = ["src/mcp", "tests"]
venvPath = "."
venv = ".venv"
strict = [
"src/mcp/server/fastmcp/tools/base.py",
]
[tool.ruff.lint]
select = ["E", "F", "I"]
@ -85,3 +88,13 @@ members = ["examples/servers/*"]
[tool.uv.sources]
mcp = { workspace = true }
[tool.pytest.ini_options]
xfail_strict = true
filterwarnings = [
"error",
# This should be fixed on Uvicorn's side.
"ignore::DeprecationWarning:websockets",
"ignore:websockets.server.WebSocketServerProtocol is deprecated:DeprecationWarning",
"ignore:Returning str or bytes.*:DeprecationWarning:mcp.server.lowlevel"
]