Rich-click

Latest version: v1.8.3

Safety actively analyzes 642283 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 5

1.7.2

- Add support for rich formatting in epilog text [[146](https://github.com/ewels/rich-click/pull/146)]

1.7.1

- Fix bug with `rich-click` CLI not working with Python 3.12. [[141](https://github.com/ewels/rich-click/issues/141)]
- Fix compatibility issue with `dbt-core` CLI. [[140](https://github.com/ewels/rich-click/issues/140)]

1.7.0

> [!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](https://github.com/BrutalSimplicity) - see [#92](https://github.com/ewels/rich-click/pull/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](https://github.com/ewels/rich-click/issues/25): Add tests!
- [90](https://github.com/ewels/rich-click/issues/90): `click.ClickException` should output to `stderr`
- [88](https://github.com/ewels/rich-click/issues/88): Rich Click breaks contract of Click's `format_help` and its callers
- [18](https://github.com/ewels/rich-click/issues/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](https://github.com/ewels/rich-click/issues/85)), and fixes many bugs - see PR [#126](https://github.com/ewels/rich-click/pull/126).

In addition:

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

1.6.1

- Don't show metavars for [feature switch](https://click.palletsprojects.com/en/8.1.x/options/#feature-switches) options [[100](https://github.com/ewels/rich-click/issues/100)] (likewei92)

1.6.0

- ⚠️ Removed support for Typer ⚠️
- Please use the [native Typer functionality](https://typer.tiangolo.com/tutorial/options/help/#cli-options-help-panels) instead.
- Added self-updating automated readme screengrabs using [rich-codex](https://github.com/ewels/rich-codex)
- Fix `AssertionError` when using click command call [[94](https://github.com/ewels/rich-click/issues/94)]

1.5.2

> ⚠️ Important notice! ⚠️
>
> As of [Typer v0.6.0](https://typer.tiangolo.com/release-notes/#060), Typer now supports rich help text natively.
> Support for Typer in rich-click is now depreciated and will be removed in a future release.

- Pin Typer version to `<0.6`
- Improve support for arguments [[82](https://github.com/ewels/rich-click/pull/82)]
- Fixes error with Typer arguments [[59](https://github.com/ewels/rich-click/issues/59)]
- Adds new style option `STYLE_ARGUMENT`
- Don't show env vars if `None` [[84](https://github.com/ewels/rich-click/issues/84)]
- Specify `__all__` for type checkers [[83](https://github.com/ewels/rich-click/pull/83)]

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.