strat-gameplay-webapp/backend/app/services/__init__.py
Cal Corum a4b99ee53e CLAUDE: Replace black and flake8 with ruff for formatting and linting
Migrated to ruff for faster, modern code formatting and linting:

Configuration changes:
- pyproject.toml: Added ruff 0.8.6, removed black/flake8
- Configured ruff with black-compatible formatting (88 chars)
- Enabled comprehensive linting rules (pycodestyle, pyflakes, isort,
  pyupgrade, bugbear, comprehensions, simplify, return)
- Updated CLAUDE.md: Changed code quality commands to use ruff

Code improvements (490 auto-fixes):
- Modernized type hints: List[T] → list[T], Dict[K,V] → dict[K,V],
  Optional[T] → T | None
- Sorted all imports (isort integration)
- Removed unused imports
- Fixed whitespace issues
- Reformatted 38 files for consistency

Bug fixes:
- app/core/play_resolver.py: Fixed type hint bug (any → Any)
- tests/unit/core/test_runner_advancement.py: Removed obsolete random mock

Testing:
- All 739 unit tests passing (100%)
- No regressions introduced

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-20 15:33:21 -06:00

44 lines
1.2 KiB
Python

"""
Services - External API clients and caching services.
Provides access to external APIs and caching layers for the game engine.
Author: Claude
Date: 2025-11-03
"""
from app.services.box_score_service import BoxScoreService, box_score_service
from app.services.lineup_service import (
LineupEntryWithPlayer,
LineupService,
lineup_service,
)
from app.services.pd_api_client import PdApiClient, pd_api_client
from app.services.play_stat_calculator import PlayStatCalculator
from app.services.position_rating_service import (
PositionRatingService,
position_rating_service,
)
from app.services.redis_client import RedisClient, redis_client
from app.services.sba_api_client import SbaApiClient, sba_api_client
from app.services.stat_view_refresher import StatViewRefresher, stat_view_refresher
__all__ = [
"PdApiClient",
"pd_api_client",
"SbaApiClient",
"sba_api_client",
"PositionRatingService",
"position_rating_service",
"RedisClient",
"redis_client",
"PlayStatCalculator",
"BoxScoreService",
"box_score_service",
"StatViewRefresher",
"stat_view_refresher",
"LineupService",
"LineupEntryWithPlayer",
"lineup_service",
]