Aeon-MLTB
Aeon-MLTB copied to clipboard
Dev
Summary by Sourcery
Refactor and enhance various utility functions and modules to improve code readability, maintainability, and functionality. This includes reformatting strings, reordering imports, updating variable names, and enhancing configuration handling and file operations.
Enhancements:
- Refactor code to improve readability and maintainability by reformatting strings, reordering imports, and updating variable names.
- Consolidate import statements and group them logically for better organization.
- Update the
load_configfunction to handle environment variables more robustly and ensure proper initialization of configuration settings. - Enhance the
edit_variableandupdate_private_filefunctions to handle various file operations and configurations more effectively. - Improve the
add_qb_torrentfunction to handle torrent addition and metadata downloading more efficiently.
Reviewer's Guide by Sourcery
This pull request focuses on code reformatting to adhere to PEP 8 guidelines. Changes include reorganization of imports, replacement of single quotes with double quotes, and improved readability of multi-line statements, dictionary/list definitions, and function calls. Additionally, some missing return statements were added to ensure proper function behavior.
File-Level Changes
| Files | Changes |
|---|---|
bot/helper/mirror_leech_utils/download_utils/direct_link_generator.pybot/modules/bot_settings.pybot/helper/mirror_leech_utils/download_utils/qbit_download.pybot/helper/ext_utils/exceptions.py |
Reformatted code to adhere to PEP 8 guidelines, including reorganization of imports, replacement of single quotes with double quotes, and improved readability of multi-line statements and dictionary/list definitions. |
Tips
- Trigger a new Sourcery review by commenting
@sourcery-ai reviewon the pull request. - Continue your discussion with Sourcery by replying directly to review comments.
- You can change your review settings at any time by accessing your dashboard:
- Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
- Change the review language;
- You can always contact us if you have any questions or feedback.