meshcore-mqtt-live-map/pyproject.toml
2026-01-12 01:40:45 +00:00

76 lines
1.7 KiB
TOML

[project]
name = "mesh-live-map"
version = "1.0.2"
description = "Real-time visualization platform for MeshCore network traffic"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "GPL-3.0" }
dependencies = [
"fastapi>=0.115.0",
"uvicorn>=0.34.0",
"paho-mqtt>=2.1.0",
"httpx>=0.27.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.1.0",
"ruff>=0.4.0",
"httpx>=0.27.0",
]
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[tool.ruff]
target-version = "py311"
line-length = 120
indent-width = 2
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"B905", # zip without strict= (python 3.10+)
"SIM108", # use ternary instead of if-else (readability)
]
[tool.ruff.lint.isort]
known-first-party = ["backend"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
[tool.coverage.run]
source = ["backend"]
omit = ["tests/*", "backend/static/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"raise NotImplementedError",
]