Summary
bases/bot_detector/runemetrics_scraper/core.py imports from osrs.utils import RateLimiter (external osrs package) instead of from bot_detector.rate_limiter import RateLimiter (internal component).
This bypasses the Polylith component architecture and creates an undeclared dependency not tracked in pyproject.toml bricks.
Proposed Change
Replace from osrs.utils import RateLimiter with from bot_detector.rate_limiter import RateLimiter in bases/bot_detector/runemetrics_scraper/core.py.
Ensure the rate_limiter component is listed in the runemetrics_scraper project bricks if not already.
Context
Migration artifact. The internal rate_limiter component exists for this purpose and is already used by hiscore_scraper and discord_bot.
Summary
bases/bot_detector/runemetrics_scraper/core.pyimportsfrom osrs.utils import RateLimiter(externalosrspackage) instead offrom bot_detector.rate_limiter import RateLimiter(internal component).This bypasses the Polylith component architecture and creates an undeclared dependency not tracked in
pyproject.tomlbricks.Proposed Change
Replace
from osrs.utils import RateLimiterwithfrom bot_detector.rate_limiter import RateLimiterinbases/bot_detector/runemetrics_scraper/core.py.Ensure the
rate_limitercomponent is listed in therunemetrics_scraperproject bricks if not already.Context
Migration artifact. The internal
rate_limitercomponent exists for this purpose and is already used byhiscore_scraperanddiscord_bot.