a41c86f1da
refactor: remove GlobalLogger and migrate to standard Python logging
...
- Remove src/infrastructure/logging/GlobalLogger.py
- Update SerieScanner.py to use standard logging.getLogger()
- Update aniworld_provider.py to remove custom noKeyFound_logger setup
- Fix test_dependencies.py to properly mock config_service
- Fix code style issues (line length, formatting)
- All 846 tests passing
2025-10-25 17:27:49 +02:00
c81a493fb1
cleanup
2025-10-23 19:00:49 +02:00
9a64ca5b01
cleanup
2025-10-23 18:10:34 +02:00
92795cf9b3
Improve docs and security defaults
2025-10-22 15:22:58 +02:00
04799633b4
cleanup
2025-10-22 13:38:46 +02:00
f64ba74d93
refactor: Apply PEP8 naming conventions - convert PascalCase methods to snake_case
...
This comprehensive refactoring applies PEP8 naming conventions across the codebase:
## Core Changes:
### src/cli/Main.py
- Renamed __InitList__() to __init_list__()
- Renamed print_Download_Progress() to print_download_progress()
- Fixed variable naming: task3 -> download_progress_task
- Fixed parameter spacing: words :str -> words: str
- Updated all method calls to use snake_case
- Added comprehensive docstrings
### src/core/SerieScanner.py
- Renamed Scan() to scan()
- Renamed GetTotalToScan() to get_total_to_scan()
- Renamed Reinit() to reinit()
- Renamed private methods to snake_case:
- __ReadDataFromFile() -> __read_data_from_file()
- __GetMissingEpisodesAndSeason() -> __get_missing_episodes_and_season()
- __GetEpisodeAndSeason() -> __get_episode_and_season()
- __GetEpisodesAndSeasons() -> __get_episodes_and_seasons()
- Added comprehensive docstrings to all methods
- Fixed long line issues
### src/core/providers/base_provider.py
- Refactored abstract base class with proper naming:
- Search() -> search()
- IsLanguage() -> is_language()
- Download() -> download()
- GetSiteKey() -> get_site_key()
- GetTitle() -> get_title()
- Added proper type hints (Dict, List, etc.)
- Added comprehensive docstrings explaining contracts
- Fixed newline at end of file
### src/core/providers/aniworld_provider.py
- Renamed public methods to snake_case:
- Search() -> search()
- IsLanguage() -> is_language()
- Download() -> download()
- GetSiteKey() -> get_site_key()
- GetTitle() -> get_title()
- ClearCache() -> clear_cache()
- RemoveFromCache() -> remove_from_cache()
- Renamed private methods to snake_case:
- _GetLanguageKey() -> _get_language_key()
- _GetKeyHTML() -> _get_key_html()
- _GetEpisodeHTML() -> _get_episode_html()
- Fixed import organization
- Improved code formatting and line lengths
- Added docstrings to all methods
### src/core/SeriesApp.py
- Updated all calls to use new snake_case method names
- Updated loader calls: loader.Search() -> loader.search()
- Updated loader calls: loader.Download() -> loader.download()
- Updated scanner calls: SerieScanner.GetTotalToScan() -> SerieScanner.get_total_to_scan()
- Updated scanner calls: SerieScanner.Reinit() -> SerieScanner.reinit()
- Updated scanner calls: SerieScanner.Scan() -> SerieScanner.scan()
### tests/unit/test_series_app.py
- Updated mock calls to use new snake_case method names:
- get_total_to_scan() instead of GetTotalToScan()
- reinit() instead of Reinit()
- scan() instead of Scan()
## Verification:
- All unit tests pass ✅
- All integration tests pass ✅
- All tests pass ✅
- No breaking changes to functionality
## Standards Applied:
- PEP 8: Function/method names use lowercase with underscores (snake_case)
- PEP 257: Added comprehensive docstrings
- Type hints: Proper type annotations where applicable
- Code formatting: Fixed line lengths and spacing
2025-10-22 12:44:42 +02:00
a0f32b1a00
feat: Implement comprehensive progress callback system
...
- Created callback interfaces (ProgressCallback, ErrorCallback, CompletionCallback)
- Defined rich context objects (ProgressContext, ErrorContext, CompletionContext)
- Implemented CallbackManager for managing multiple callbacks
- Integrated callbacks into SerieScanner for scan progress reporting
- Enhanced SeriesApp with download progress tracking via callbacks
- Added error and completion notifications throughout core operations
- Maintained backward compatibility with legacy callback system
- Created 22 comprehensive unit tests with 100% pass rate
- Updated infrastructure.md with callback system documentation
- Removed completed tasks from instructions.md
The callback system provides:
- Real-time progress updates with percentage and phase tracking
- Comprehensive error reporting with recovery information
- Operation completion notifications with statistics
- Thread-safe callback execution with exception handling
- Support for multiple simultaneous callbacks per type
2025-10-17 20:05:57 +02:00
7a71715183
backup
2025-10-12 18:05:31 +02:00
85f2d2c6f7
cleanup 2
2025-10-05 22:22:04 +02:00
e477780ed6
refactoring
2025-09-29 21:18:42 +02:00