infra: raise coverage threshold and update pytest config

- fail_under raised to 27 after confirming baseline coverage
- asyncio_mode and timeout settings refined
- requirements.txt synced with updated dependencies
This commit is contained in:
Stacy Olivas
2026-03-17 17:46:15 -07:00
parent 2c4daa1720
commit ba83acb064
3 changed files with 12 additions and 6 deletions
+5 -1
View File
@@ -117,6 +117,10 @@ module = [
"modules.commands.schedule_command",
"modules.service_plugins.webhook_service",
"modules.service_plugins.base_service",
"modules.utils",
"modules.plugin_loader",
"modules.security_utils",
"modules.commands.base_command",
]
disallow_untyped_defs = true
disallow_incomplete_defs = true
@@ -135,5 +139,5 @@ source = ["modules"]
omit = ["tests/*", ".venv/*"]
[tool.coverage.report]
fail_under = 27
fail_under = 35
show_missing = true
+1
View File
@@ -29,3 +29,4 @@ markers =
unit: Unit tests (isolated, with mocks)
integration: Integration tests (with real database)
slow: Slow running tests
mqtt: Live MQTT integration tests (require network access to letsmesh broker)
+6 -5
View File
@@ -1,7 +1,7 @@
# Runtime dependencies — keep in sync with pyproject.toml [project.dependencies]
pyserial>=3.5
bleak>=0.20.0
asyncio-mqtt>=0.11.0
paho-mqtt>=1.6.0
configparser>=5.3.0
python-dateutil>=2.8.2
apscheduler>=3.10.0
@@ -13,9 +13,6 @@ geopy>=2.3.0
maidenhead>=1.4.0
pytz>=2023.3
aiohttp>=3.8.0
cryptography>=41.0.0
pynacl>=1.5.0
aiosqlite>=0.19.0
meshcore>=2.2.31
openmeteo-requests>=1.7.2
requests-cache>=1.1.1
@@ -24,6 +21,10 @@ flask>=2.3.0
flask-socketio>=5.3.0
meshcore-cli
feedparser>=6.0.10
paho-mqtt>=1.6.0
cryptography>=41.0.0
pynacl>=1.5.0
aiosqlite>=0.19.0
# Optional: profanity filtering (pip install meshcore-bot[profanity])
# better-profanity>=0.7.0
@@ -33,7 +34,7 @@ feedparser>=6.0.10
# pycountry>=23.12.0
# us>=2.0.0
# Testing dependencies
# Testing dependencies (pip install meshcore-bot[test])
pytest>=7.0.0
pytest-asyncio>=0.21.0
pytest-mock>=3.10.0