Skip to content

Commit

Permalink
Merge pull request #144 from dwreeves/dev
Browse files Browse the repository at this point in the history
config refactors
  • Loading branch information
dwreeves authored Nov 30, 2023
2 parents 3128c30 + 8e15111 commit 992e203
Show file tree
Hide file tree
Showing 8 changed files with 832 additions and 854 deletions.
14 changes: 11 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
# Changelog: rich-click

## Version 1.8.0dev

- Some internal refactors:
- `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.
- Added `RichHelpConfiguration.build_from_globals()` classmethod, which pulls all configuration from `rich_click.py`.

## Version 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)]
- Fix bug with `rich-click` CLI not working with Python 3.12. [#140](https://github.com/ewels/rich-click/issues/140)
- Fix compatibility issue with `dbt-core` CLI. [[#141](https://github.com/ewels/rich-click/issues/141)]

## Version 1.7.0

> [!WARNING]
>
> Click 7.x support is deprecated and will be removed in rich-click version 1.8.x.
> 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)
Expand Down
2 changes: 1 addition & 1 deletion src/rich_click/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
customisation required.
"""

__version__ = "1.7.1"
__version__ = "1.8.0dev0"

# Import the entire click API here.
# We need to manually import these instead of `from click import *` to force mypy to recognize a few type annotation overrides for the rich_click decorators.
Expand Down
Loading

0 comments on commit 992e203

Please sign in to comment.