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

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

phiwuu
Copy link
Member

@phiwuu phiwuu commented Jan 13, 2025

Previously the function LOBSTER_Tool.process_commandline_options
did two things:
It processed

  • 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 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
@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

@phiwuu phiwuu force-pushed the internal/lobster-json-refactoring branch from 73e69e7 to dc37fdb Compare January 14, 2025 17:39
@phiwuu phiwuu force-pushed the internal/lobster-json-refactoring branch 4 times, most recently from 5695d72 to 32d1d43 Compare January 28, 2025 08:14
@phiwuu phiwuu marked this pull request as ready for review January 28, 2025 09:08
@phiwuu phiwuu force-pushed the internal/lobster-json-refactoring branch from 32d1d43 to 1a3f05f Compare January 28, 2025 09:08
@phiwuu phiwuu force-pushed the internal/lobster-json-refactoring branch 6 times, most recently from 72ec6ce to da55168 Compare January 31, 2025 07:27
Previously the function `LOBSTER_Tool.process_commandline_options`
did two things:
It processed
- 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 da55168 to 9b7b490 Compare January 31, 2025 07:29
@phiwuu phiwuu enabled auto-merge (squash) January 31, 2025 07:35
@phiwuu phiwuu merged commit 2453cc7 into main Jan 31, 2025
25 checks passed
@phiwuu phiwuu deleted the internal/lobster-json-refactoring branch January 31, 2025 09:00
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.

2 participants