pluGET
pluGET copied to clipboard
build: refactored the whole code and improved readability
-
Remove
install_requirements_LINUX.shandinstall_requirements_WINDOWS.batscripts as they are no longer needed with Poetry. -
Add
pyproject.tomlto define project metadata, dependencies, and development dependencies using Poetry's configuration format. -
Remove
requirements.txtas dependencies are now managed by Poetry. -
Refactor
pluget.pyto 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.
- Add
-
Refactor
handle_config.pyto modernize the codebase:- Rename
config_valueclass toConfigValue(PEP 8 compliance). - Add detailed docstrings, type hints, and error handling.
- Improve YAML file handling with explicit encoding and error management.
- Rename
-
Refactor
utilities.pyto 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.