paper-dynasty-discord/cogs/economy_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

37 lines
1.2 KiB
Python

# Economy Package
# Refactored from monolithic economy.py into focused modules
# This package contains the following modules:
# - help_system.py: Help and FAQ commands
# - packs.py: Pack opening, daily rewards, donations
# - marketplace.py: Buy/sell functionality
# - team_setup.py: Team creation and sheet management
# - admin_tools.py: Admin/mod commands
# - notifications.py: Automated notification processing
# Economy Package - Shared imports only for setup function
import logging
async def setup(bot):
"""
Setup function for the economy package.
Loads all economy-related cogs.
"""
# Import and setup all economy modules
from .help_system import HelpSystem
from .packs import Packs
from .marketplace import Marketplace
from .team_setup import TeamSetup
from .admin_tools import AdminTools
from .notifications import Notifications
await bot.add_cog(HelpSystem(bot))
await bot.add_cog(Packs(bot))
await bot.add_cog(Marketplace(bot))
await bot.add_cog(TeamSetup(bot))
await bot.add_cog(AdminTools(bot))
await bot.add_cog(Notifications(bot))
logging.getLogger("discord_app").info("All economy cogs loaded successfully")