Closed jan-janssen closed 2 months ago
[!CAUTION]
Review failed
The pull request is closed.
The changes introduce a new Queues
class for managing queue names, a read_config
function for parsing YAML files, and modifications to the check_queue_parameters
function for improved validation. Additionally, a new execute_command
function is added for executing shell commands with error handling. Import statements across several files are updated to reflect a reorganization of the codebase, moving functionality from the utils
module to the base
module.
Files | Change Summary |
---|---|
pysqa/base/config.py |
Added Queues class for queue management, modified check_queue_parameters for validation, and added read_config function for YAML parsing. |
pysqa/base/core.py |
Introduced execute_command function for executing shell commands with error handling. |
pysqa/base/validate.py |
Added check_queue_parameters function for validating queue parameters. |
pysqa/cmd.py |
Updated import of execute_command from pysqa.utils.execute to pysqa.base.core . |
pysqa/ext/modular.py |
Changed imports for QueueAdapterWithConfig and execute_command from pysqa.utils to pysqa.base . |
pysqa/ext/remote.py |
Updated imports for QueueAdapterWithConfig and execute_command from pysqa.utils to pysqa.base . |
pysqa/queueadapter.py |
Changed imports for QueueAdapterWithConfig , read_config , and execute_command from pysqa.utils to pysqa.base . |
tests/test_basic.py |
Updated imports for QueueAdapterWithConfig and value_in_range from pysqa.utils to pysqa.base . |
tests/test_execute_command.py |
Changed import of execute_command from pysqa.utils.execute to pysqa.base.core . |
tests/test_sge.py |
Updated import of value_in_range from pysqa.utils.validate to pysqa.base.validate . |
check_queue_parameters
function, which is also updated in this PR to use a new utility function for validation.BasisQueueAdapter
class, potentially related to queue management.🐰 In the meadow where queues align,
New classes and functions intertwine.
With commands that execute with grace,
YAML configs find their place.
Hops of joy in code we see,
A better world for you and me! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
Release Notes
New Features
Queues
class for dynamic queue name retrieval.read_config
function to read YAML configuration files.execute_command
function for executing shell commands with enhanced error handling.check_queue_parameters
function for validating queue parameters.Refactor