Skip to content

Commit e08e9b1

Browse files
author
Sebastian
committed
Add new config for make targets
Signed-off-by: Sebastian <[email protected]>
1 parent d5ec695 commit e08e9b1

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

pyproject.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ dependencies = [
6767
"starlette>=0.47.2",
6868
"uvicorn>=0.35.0",
6969
"zeroconf>=0.147.0",
70+
"aiohttp>=3.12.14",
71+
"websockets>=15.0.1"
7072
]
7173

7274
# ----------------------------------------------------------------
@@ -248,6 +250,22 @@ include = "\\.pyi?$"
248250

249251
# isort configuration
250252
[tool.isort]
253+
254+
255+
# --------------------------------------------------------------------
256+
# 🛠 Async tool configurations (async-test, async-lint, etc.)
257+
# --------------------------------------------------------------------
258+
[tool.ruff]
259+
select = ["F", "E", "W", "B", "ASYNC"]
260+
unfixable = ["B"] # Never auto-fix critical bugbear warnings
261+
262+
[tool.ruff.flake8-bugbear]
263+
extend-immutable-calls = ["fastapi.Depends", "fastapi.Query"]
264+
265+
[[tool.mypy.overrides]]
266+
module = "tests.*"
267+
disallow_untyped_defs = false
268+
251269
###############################################################################
252270
# Core behaviour
253271
###############################################################################
@@ -318,6 +336,7 @@ warn_unreachable = true # Warn about unreachable code
318336
warn_unused_ignores = true # Warn if a "# type: ignore" is unnecessary
319337
warn_unused_configs = true # Warn about unused config options
320338
warn_redundant_casts = true # Warn if a cast does nothing
339+
warn_unused_coroutine = true # Warn if an unused async coroutine is defined
321340
strict_equality = true # Disallow ==/!= between incompatible types
322341

323342
# Output formatting
@@ -331,6 +350,9 @@ exclude = [
331350
'^\\.mypy_cache/',
332351
]
333352

353+
# Plugins to use with mypy
354+
plugins = ["pydantic.mypy"] # Enable mypy plugin for Pydantic models
355+
334356
[tool.pytest.ini_options]
335357
minversion = "6.0"
336358
addopts = "-ra -q --cov=mcpgateway --ignore=tests/playwright"

pyrightconfig.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"typeCheckingMode": "strict",
3+
"reportUnusedCoroutine": "error",
4+
"reportMissingTypeStubs": "warning",
5+
"exclude": ["build", ".venv", "async_testing/profiles"]
6+
}

0 commit comments

Comments
 (0)