paper-dynasty-discord/cogs/players_new/__init__.py
Cal Corum 04d6cf3b5e fix: replace star imports with explicit named imports across codebase
Convert all `from x import *` to explicit imports in 12 files, resolving
925 F403/F405 ruff violations. Each name traced to its canonical source
module. Also fixes: duplicate Session import (players.py), missing
sample_team_data fixture param, duplicate method name paperdex_cardset_slash,
unused commands import in package __init__ files, and Play type hint in
play_lock.py.

3 pre-existing code bugs remain (F811 duplicate test names, F821 undefined
`question` variable) — these need investigation, not mechanical fixes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 12:48:07 -05:00

31 lines
1.0 KiB
Python

# Players package for Paper Dynasty Discord Bot
# Refactored from the original monolithic players.py cog
from .shared_utils import get_ai_records, get_record_embed, get_record_embed_legacy
import logging
__all__ = ["get_ai_records", "get_record_embed", "get_record_embed_legacy"]
async def setup(bot):
"""
Setup function for the players package.
Loads all player-related cogs.
"""
# Import and setup all player modules
from .gauntlet import Gauntlet
from .paperdex import Paperdex
from .player_lookup import PlayerLookup
from .standings_records import StandingsRecords
from .team_management import TeamManagement
from .utility_commands import UtilityCommands
await bot.add_cog(Gauntlet(bot))
await bot.add_cog(Paperdex(bot))
await bot.add_cog(PlayerLookup(bot))
await bot.add_cog(StandingsRecords(bot))
await bot.add_cog(TeamManagement(bot))
await bot.add_cog(UtilityCommands(bot))
logging.getLogger("discord_app").info("All player cogs loaded successfully")