chore(deps): update dependency rich_click to v1.8.3 #2905
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==1.6.1
->==1.8.3
Release Notes
ewels/rich-click (rich_click)
v1.8.3
Compare Source
{cmd}
as an option/command group key whenpython -m {cmd}
is the command_path.v1.8.2
Compare Source
v1.8.1
Compare Source
highlighter
v1.8.0
Compare Source
--rich-config
and--output
options to therich-click
CLI.rich_click.py
is exclusively the global config; all formatting has been moved torich_help_rendering.py
.RichCommand
now makes use of methods in the super class:format_usage
,format_help_text
,format_options
, andformat_epilog
.formatter
object has been removed from the code.highlighter
is now constructed by theRichHelpFormatter
rather than being inside the config object.RichHelpConfiguration.load_from_globals()
classmethod, which pulls all configuration fromrich_click.py
.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.highlighter
is now deprecated inRichHelpConfiguration
; please usehighlighter_patterns
instead.pyproject.toml
and removedsetup.py
/setup.cfg
; thank you @Stealthii!text_markup: Literal["markdown", "rich", "ansi", None]
instead of booleans.ansi
instead ofNone
to help support usage ofclick.style()
.None
is still supported.stderr
by default.STYLE_OPTIONS_PANEL_BOX
STYLE_COMMANDS_PANEL_BOX
STYLE_ERRORS_PANEL_BOX
command_path
andcommand.name
.*
) option for command groups and option groups, with thanks to @ITProKyle!TypedDict
[#156]panel_styles
support to groups. [#178]table_styles
andpanel_styles
to be defined for the positional arguments group.v1.7.4
Compare Source
legacy_windows
default. [#167]v1.7.3
Compare Source
v1.7.2
Compare Source
v1.7.1
Compare Source
rich-click
CLI not working with Python 3.12. [#141]dbt-core
CLI. [#140]v1.7.0
Compare Source
This release comes after merging a huge pull-request from @BrutalSimplicity - see #92
HelpFormatter
classHelpConfiguration
class that doubles the current module-level settingsHelpConfiguration
to be passed into Click via the supportedcontext_settings
argument provided by theCommand
andGroup
classes.RichHelpFormatter
creates a console based on theRichHelpConfiguration
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).RichContext
class to allow creation of the custom formatter.Console
andRichHelpConfiguration
properties.This PR closes a number of issues:
click.ClickException
should output tostderr
format_help
and its callersIn 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:
STYLE_COMMAND
[#102]WIDTH
(in addition toMAX_WIDTH
), thanks to @ealap [#110]STYLE_ERRORS_SUGGESTION_COMMAND
[#136]Usage:
line to avoid off-target effects [#108]ctx.exit(exit_code)
would not show nonzero exit codes.[#114]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.
This PR was generated by Mend Renovate. View the repository job log.