fix(pry): add missing deps (cloudscraper, aiohttp-socks, pyjwt, apify, playwright-stealth), fix docker env var + healthcheck + non-root

This commit is contained in:
Crypto Rug Munch 2026-07-06 18:31:34 +07:00
parent c6194ca444
commit df2fc04f7c
4 changed files with 49 additions and 4 deletions

View file

@ -53,6 +53,13 @@ dependencies = [
"prometheus-client>=0.21.0",
"opentelemetry-api>=1.29.0",
"opentelemetry-sdk>=1.29.0",
"cloudscraper>=1.2.0",
"aiohttp-socks[aiohttp]>=0.8.0",
"aiohttp>=3.9.0",
"undetected-chromedriver>=3.5.0",
"pyjwt>=2.8.0",
"apify>=2.0.0",
"playwright-stealth>=1.0.0",
]
[project.optional-dependencies]
@ -64,6 +71,8 @@ dev = [
"mypy>=1.12.0",
"pre-commit>=4.0.0",
"alembic>=1.14.0",
"respx>=0.21.0",
"commitizen>=3.12.0",
]
[project.scripts]
@ -146,3 +155,30 @@ ignore_missing_imports = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.coverage.run]
branch = true
source = ["api", "cli", "extractor", "parser", "scraper", "monitor", "network", "cache", "auth", "errors", "paths", "settings", "db", "tasks", "quality", "reports", "extraction", "x402", "x402_middleware"]
omit = [
"tests/*",
"browser-extension/*",
"shopify-app/*",
"wordpress-plugin/*",
"*/templates/*",
"*/profiles/*",
"*/stealth_scripts/*",
"pry.egg-info/*",
"build/*",
"dist/*",
]
[tool.coverage.report]
fail_under = 45 # gradual path: current is ~47%; raise to 60, 70, 75, 80 in successive PRs
precision = 1
show_missing = true
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"raise NotImplementedError",
"pass",
]