Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split LOBSTER_Tool.process_commandline_options #173

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

phiwuu
Copy link
Member

@phiwuu phiwuu commented Jan 13, 2025

The function LOBSTER_Tool.process_commandline_options does two things.
It processes

  • the common command line options
  • and the tool specific command line options.

The code has been refactored such that there are dedicated functions for each of these two steps.
This increases readability of the code.

@phiwuu phiwuu self-assigned this Jan 13, 2025
@phiwuu phiwuu added the internal Affects the CI, tests or refactorings only, not relevant to the end-user label Jan 13, 2025
@phiwuu phiwuu force-pushed the internal/lobster-json-refactoring branch 4 times, most recently from 760b66d to 4416961 Compare January 13, 2025 04:23
@phiwuu phiwuu marked this pull request as ready for review January 13, 2025 12:41
@phiwuu phiwuu requested a review from a team as a code owner January 13, 2025 12:41
The function `LOBSTER_Tool.process_commandline_options`
does two things.
It processes
- the common command line options
- and the tool specific command line options.

The code has been refactored such that there are dedicated
functions for each of these two steps.
This increases readability of the code.

Type hints have been added to some functions.

The implementation of the method `LOBSTER_Per_File_Tool.process` has been
replaced by a single `pass`, because it is abstract.
@phiwuu phiwuu force-pushed the internal/lobster-json-refactoring branch from 4416961 to 949979b Compare January 13, 2025 12:42
@phiwuu phiwuu enabled auto-merge (squash) January 13, 2025 12:42
@phiwuu phiwuu marked this pull request as draft January 13, 2025 12:42
auto-merge was automatically disabled January 13, 2025 12:42

Pull request was converted to draft

Write a requirement to specify the behavior of
`lobster-json` if input files or directories are
specified by the user.

Add system tests for this requirement.
@phiwuu phiwuu force-pushed the internal/lobster-json-refactoring branch from 73e69e7 to dc37fdb Compare January 14, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Affects the CI, tests or refactorings only, not relevant to the end-user
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant