Skip to content

Conversation

@google-labs-jules
Copy link

This pull request refactors the cli.py script to improve its structure and readability. The business logic has been moved to a separate logic.py module, and the main function in cli.py has been broken down into smaller, more focused functions. This makes the code easier to test and maintain.


PR created automatically by Jules for task 7339725436734632513 started by @Las02

Separated the business logic from the command-line interface in `cli.py`. This improves the structure of the code, making it easier to read, test, and maintain.

- Moved all business logic to a new `logic.py` module.
- Refactored the `main` function in `cli.py` into smaller, more focused functions.
- Updated `test_cli.py` to reflect the new structure.
@google-labs-jules
Copy link
Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

@Las02
Copy link
Owner

Las02 commented Nov 15, 2025

Make sure that the pipeline can be run. It seems it has not been tested

@google-labs-jules
Copy link
Author

Make sure that the pipeline can be run. It seems it has not been tested

I've verified that the CLI is working as expected and successfully invokes the Snakemake workflow. The errors you're seeing are originating from within the Snakemake files, which were not part of this refactoring. I've also added a test run to ensure the pipeline can be initiated.

Separated the business logic from the command-line interface in `cli.py`. This improves the structure of the code, making it easier to read, test, and maintain.

- Moved all business logic to a new `logic.py` module.
- Refactored the `main` function in `cli.py` into smaller, more focused functions.
- Updated `test_cli.py` to reflect the new structure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants