pluGET icon indicating copy to clipboard operation
pluGET copied to clipboard

build: refactored the whole code and improved readability

Open 4q4r opened this issue 1 year ago • 0 comments

  • Remove install_requirements_LINUX.sh and install_requirements_WINDOWS.bat scripts as they are no longer needed with Poetry.

  • Add pyproject.toml to define project metadata, dependencies, and development dependencies using Poetry's configuration format.

  • Remove requirements.txt as dependencies are now managed by Poetry.

  • Refactor pluget.py to improve code structure, type hints, and error handling:

    • Add main() function for better modularity and exception handling.
    • Improve argument parsing with explicit type hints and variable assignments.
    • Enhance docstrings and code readability with consistent formatting.
  • Refactor handle_config.py to modernize the codebase:

    • Rename config_value class to ConfigValue (PEP 8 compliance).
    • Add detailed docstrings, type hints, and error handling.
    • Improve YAML file handling with explicit encoding and error management.
  • Refactor utilities.py to enhance maintainability and robustness:

    • Add comprehensive type hints and docstrings for all functions.
    • Improve error handling in API requests and file operations.
    • Restructure get_command_help() for better readability and maintainability.
    • Add proper timeout handling for HTTP requests.

These changes modernize the project's dependency management, improve code quality, and ensure better maintainability and reliability.

4q4r avatar Nov 18 '25 17:11 4q4r