Aeon-MLTB icon indicating copy to clipboard operation
Aeon-MLTB copied to clipboard

Dev

Open 5hojib opened this issue 1 year ago • 1 comments

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_config function to handle environment variables more robustly and ensure proper initialization of configuration settings.
  • Enhance the edit_variable and update_private_file functions to handle various file operations and configurations more effectively.
  • Improve the add_qb_torrent function to handle torrent addition and metadata downloading more efficiently.

5hojib avatar Aug 11 '24 18:08 5hojib

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.py
bot/modules/bot_settings.py
bot/helper/mirror_leech_utils/download_utils/qbit_download.py
bot/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 review on 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.

sourcery-ai[bot] avatar Aug 11 '24 18:08 sourcery-ai[bot]