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

Use rich theme in argparse help menu #58

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

AustinCullar
Copy link
Owner

This change required importing the rich_argparse package. A new class called AstroTheme was created to house all color theme related info.

Additional info:

  • Add AstroTheme class in a new theme.py file
  • AstroTheme will now hold all color theme related info
  • Some private class methods have been privated using the double underscore convention
  • A theme was defined for argparse, and implemented by AstroTheme
  • Modified conftest.py to add fixture for returning AstroThme() object
  • Modified logger() fixture to pass AstroTheme() object to logger.astro_config() method

- AstroTheme will now hold all color theme related info
- Some private class methods have been privated using the double underscore convention
- A theme was defined for argparse, and implemented by AstroTheme
- Modified conftest.py to add fixture for returning AstroThme() object
- Modified logger() fixture to pass AstroTheme() object to logger.astro_config() method
@AustinCullar AustinCullar added the enhancement New feature or request label Oct 18, 2024
@AustinCullar AustinCullar self-assigned this Oct 18, 2024
@AustinCullar AustinCullar linked an issue Oct 18, 2024 that may be closed by this pull request
Copy link

Code Coverage

Package Line Rate Health
src 90%
src.data_collection 92%
src.tests 97%
Summary 93% (642 / 687)

Minimum allowed line rate is 70%

@AustinCullar AustinCullar merged commit bca033e into main Oct 18, 2024
1 check passed
@AustinCullar AustinCullar deleted the 54-use-richhelpformater-for-argparse-help-menu branch October 18, 2024 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use RichHelpFormater for argparse help menu
1 participant