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

chore(deps): update dependency rich_click to v1.8.3 #2905

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 1, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
rich_click ==1.6.1 -> ==1.8.3 age adoption passing confidence

Release Notes

ewels/rich-click (rich_click)

v1.8.3

Compare Source

  • Support {cmd} as an option/command group key when python -m {cmd} is the command_path.
  • Fix yet another deprecation warning issue. (Sorry, sorry.)

v1.8.2

Compare Source

  • Fix another deprecation warning issue.

v1.8.1

Compare Source

  • Fixed bad deprecation warning with highlighter
  • Fixed incompatibility with Click 9.

v1.8.0

Compare Source

  • Add --rich-config and --output options to the rich-click CLI.
  • Lazy load Rich to reduce overhead when not rendering help text. [#​154]
  • Some internal refactors. These refactors are aimed at making the abstractions more maintainable over time, more consistent, and more adept for advanced used cases.
    • rich_click.py is exclusively the global config; all formatting has been moved to rich_help_rendering.py.
    • RichCommand now makes use of methods in the super class: format_usage, format_help_text, format_options, and format_epilog.
    • Global formatter object has been removed from the code.
    • highlighter is now constructed by the RichHelpFormatter rather than being inside the config object.
  • Added RichHelpConfiguration.load_from_globals() classmethod, which pulls all configuration from rich_click.py.
  • Fix bug with regex highlighter for options and switches.
  • RichHelpConfiguration() is now asserted to be JSON serializable, as an option for porting configurations. That said, serialization is not a fully supported feature of the high-level API, so serialize the config at your own risk.
    • Related: highlighter is now deprecated in RichHelpConfiguration; please use highlighter_patterns instead.
  • Moved exclusively to pyproject.toml and removed setup.py / setup.cfg; thank you @​Stealthii!
  • Moved to text_markup: Literal["markdown", "rich", "ansi", None] instead of booleans.
    • The default is now ansi instead of None to help support usage of click.style(). None is still supported.
  • Fixed issue where error messages would not print to stderr by default.
  • New configuration options: [#​178]
    • STYLE_OPTIONS_PANEL_BOX
    • STYLE_COMMANDS_PANEL_BOX
    • STYLE_ERRORS_PANEL_BOX
  • Many quality of life improvements for command and option groups:
    • Support both command_path and command.name.
    • Added wildcard (*) option for command groups and option groups, with thanks to @​ITProKyle!
    • Resolve duplicates.
    • Better typing for option groups and command groups with TypedDict [#​156]
    • Added panel_styles support to groups. [#​178]
    • Allow table_styles and panel_styles to be defined for the positional arguments group.

v1.7.4

Compare Source

  • Fixed legacy_windows default. [#​167]

v1.7.3

Compare Source

  • Fix false deprecation warning. [#​151]

v1.7.2

Compare Source

  • Add support for rich formatting in epilog text [#​146]

v1.7.1

Compare Source

  • Fix bug with rich-click CLI not working with Python 3.12. [#​141]
  • Fix compatibility issue with dbt-core CLI. [#​140]

v1.7.0

Compare Source

[!WARNING]

Click 7.x support is deprecated and will be removed in a future version.
Please update to a newer version of click.

This release comes after merging a huge pull-request from @​BrutalSimplicity - see #​92

  • Extends Click's HelpFormatter class
  • Creates a HelpConfiguration class that doubles the current module-level settings
  • Added a decorator that allows the HelpConfiguration to be passed into Click via the supported context_settings argument provided by the Command and Group classes.
  • The Rich Console object can also be configured per command and is distinct from the Console instance used internally by the formatter. The RichHelpFormatter creates a console based on the RichHelpConfiguration as the tight coupling between the Formatter and Click's internals make it difficult to allow the Console to be configured externally (i.e. one example is that Click expects help formatting to be buffered).
  • Created a RichContext class to allow creation of the custom formatter.
  • The Rich Command, Group, and Context now expose the Console and RichHelpConfiguration properties.
  • Added contributor VSCode settings

This PR closes a number of issues:

  • #​25: Add tests!
  • #​90: click.ClickException should output to stderr
  • #​88: Rich Click breaks contract of Click's format_help and its callers
  • #​18: Options inherited from context settings aren't applied

In addition, we merged another large pull-request that adds full static type-checking support (see issue #​85), and fixes many bugs - see PR #​126.

In addition:

  • Add new style option STYLE_COMMAND [#​102]
  • Add new style option WIDTH (in addition to MAX_WIDTH), thanks to @​ealap [#​110]
  • Add new style option STYLE_ERRORS_SUGGESTION_COMMAND [#​136]
  • Updated styling for Usage: line to avoid off-target effects [#​108]
  • Click 7.x support has been deprecated. [#​117]
  • Fixed error where ctx.exit(exit_code) would not show nonzero exit codes.[#​114]
  • Support click.MultiCommand. [#​38]:

Configuration

📅 Schedule: Branch creation - "every 3 months on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

netlify bot commented Oct 1, 2024

Deploy Preview for peppy-sprite-186812 canceled.

Name Link
🔨 Latest commit 76a6f78
🔍 Latest deploy log https://app.netlify.com/sites/peppy-sprite-186812/deploys/671bd8397006b20008c68dbf

Copy link

codecov bot commented Oct 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.16%. Comparing base (0dd5d6a) to head (db8ed3a).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #2905   +/-   ##
=========================================
  Coverage     81.16%   81.16%           
  Complexity     1506     1506           
=========================================
  Files           268      268           
  Lines          7363     7363           
  Branches        329      329           
=========================================
  Hits           5976     5976           
  Misses         1226     1226           
  Partials        161      161           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@renovate renovate bot force-pushed the renovate/rich_click-1.x branch 3 times, most recently from be67796 to c63ee12 Compare October 8, 2024 17:57
@renovate renovate bot changed the title chore(deps): update dependency rich_click to v1.8.3 Update dependency rich_click to v1.8.3 Oct 8, 2024
@renovate renovate bot force-pushed the renovate/rich_click-1.x branch 9 times, most recently from 582c0d5 to 7b7a2ef Compare October 15, 2024 18:01
@renovate renovate bot force-pushed the renovate/rich_click-1.x branch 11 times, most recently from 03fa3a2 to 368586d Compare October 22, 2024 05:54
@renovate renovate bot changed the title Update dependency rich_click to v1.8.3 chore(deps): update dependency rich_click to v1.8.3 Oct 22, 2024
@renovate renovate bot force-pushed the renovate/rich_click-1.x branch 3 times, most recently from eede078 to 9cfef25 Compare October 23, 2024 19:45
@renovate renovate bot force-pushed the renovate/rich_click-1.x branch 8 times, most recently from ba6b954 to db8ed3a Compare October 24, 2024 23:50
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@wslulciuc
Copy link
Member

See #2952

@wslulciuc wslulciuc closed this Oct 25, 2024
Copy link
Contributor Author

renovate bot commented Oct 25, 2024

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (==1.8.3). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

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.

1 participant