Skip to content

Commit d94a0bd

Browse files
Sebastiancrivetimihai
authored andcommitted
Add new config for make targets
Signed-off-by: Sebastian <[email protected]>
1 parent 7e7294e commit d94a0bd

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
@@ -69,6 +69,8 @@ dependencies = [
6969
"starlette>=0.47.2",
7070
"uvicorn>=0.35.0",
7171
"zeroconf>=0.147.0",
72+
"aiohttp>=3.12.14",
73+
"websockets>=15.0.1"
7274
]
7375

7476
# ----------------------------------------------------------------
@@ -250,6 +252,22 @@ include = "\\.pyi?$"
250252

251253
# isort configuration
252254
[tool.isort]
255+
256+
257+
# --------------------------------------------------------------------
258+
# 🛠 Async tool configurations (async-test, async-lint, etc.)
259+
# --------------------------------------------------------------------
260+
[tool.ruff]
261+
select = ["F", "E", "W", "B", "ASYNC"]
262+
unfixable = ["B"] # Never auto-fix critical bugbear warnings
263+
264+
[tool.ruff.flake8-bugbear]
265+
extend-immutable-calls = ["fastapi.Depends", "fastapi.Query"]
266+
267+
[[tool.mypy.overrides]]
268+
module = "tests.*"
269+
disallow_untyped_defs = false
270+
253271
###############################################################################
254272
# Core behaviour
255273
###############################################################################
@@ -320,6 +338,7 @@ warn_unreachable = true # Warn about unreachable code
320338
warn_unused_ignores = true # Warn if a "# type: ignore" is unnecessary
321339
warn_unused_configs = true # Warn about unused config options
322340
warn_redundant_casts = true # Warn if a cast does nothing
341+
warn_unused_coroutine = true # Warn if an unused async coroutine is defined
323342
strict_equality = true # Disallow ==/!= between incompatible types
324343

325344
# Output formatting
@@ -333,6 +352,9 @@ exclude = [
333352
'^\\.mypy_cache/',
334353
]
335354

355+
# Plugins to use with mypy
356+
plugins = ["pydantic.mypy"] # Enable mypy plugin for Pydantic models
357+
336358
[tool.pytest.ini_options]
337359
minversion = "6.0"
338360
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)