Skip to content

Commit 21b750c

Browse files
authored
Merge branch 'master' into addspinnername
2 parents 959c937 + 1e48fb6 commit 21b750c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1154
-400
lines changed

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
# Initializes the CodeQL tools for scanning.
3535
- name: Initialize CodeQL
36-
uses: github/codeql-action/init@v2
36+
uses: github/codeql-action/init@v3
3737
with:
3838
languages: ${{ matrix.language }}
3939
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -47,7 +47,7 @@ jobs:
4747
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
4848
# If this step fails, then you should remove it and run the build manually (see below)
4949
- name: Autobuild
50-
uses: github/codeql-action/autobuild@v2
50+
uses: github/codeql-action/autobuild@v3
5151

5252
# ℹ️ Command-line programs to run using the OS shell.
5353
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -60,6 +60,6 @@ jobs:
6060
# ./location_of_script_within_repo/buildscript.sh
6161

6262
- name: Perform CodeQL Analysis
63-
uses: github/codeql-action/analyze@v2
63+
uses: github/codeql-action/analyze@v3
6464
with:
6565
category: "/language:${{matrix.language}}"

.github/workflows/pythonpackage.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ jobs:
66
build:
77
runs-on: ${{ matrix.os }}
88
strategy:
9+
fail-fast: false
910
matrix:
1011
os: [windows-latest, ubuntu-latest, macos-latest]
11-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
12-
include:
13-
- { os: ubuntu-latest, python-version: "3.7" }
14-
- { os: windows-latest, python-version: "3.7" }
15-
- { os: macos-12, python-version: "3.7" }
12+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
13+
exclude:
14+
- { os: windows-latest, python-version: "3.13" }
1615
defaults:
1716
run:
1817
shell: bash
@@ -22,9 +21,10 @@ jobs:
2221
uses: actions/setup-python@v5
2322
with:
2423
python-version: ${{ matrix.python-version }}
24+
allow-prereleases: true
2525
- name: Install and configure Poetry
2626
# TODO: workaround for https://github.com/snok/install-poetry/issues/94
27-
uses: snok/install-poetry@v1.3.3
27+
uses: snok/install-poetry@v1.3.4
2828
with:
2929
version: 1.3.1
3030
virtualenvs-in-project: true
@@ -44,7 +44,7 @@ jobs:
4444
source $VENV
4545
pytest tests -v --cov=./rich --cov-report=xml:./coverage.xml --cov-report term-missing
4646
- name: Upload code coverage
47-
uses: codecov/codecov-action@v3
47+
uses: codecov/codecov-action@v4
4848
with:
4949
token: ${{ secrets.CODECOV_TOKEN }}
5050
file: ./coverage.xml

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ repos:
3030
hooks:
3131
- id: pycln
3232
args: [--all]
33-
- repo: https://github.com/psf/black
34-
rev: 23.7.0
33+
- repo: https://github.com/psf/black-pre-commit-mirror
34+
rev: 23.11.0
3535
hooks:
3636
- id: black
3737
exclude: ^benchmarks/

CHANGELOG.md

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,65 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## Unreleased
9+
10+
11+
### Changed
12+
13+
- Rich will display tracebacks with finely grained error locations on python 3.11+ https://github.com/Textualize/rich/pull/3486
14+
15+
16+
### Fixed
17+
18+
- Fixed issue with Segment._split_cells https://github.com/Textualize/rich/pull/3506
19+
20+
### Added
21+
22+
- Add a new `column` object `IterationSpeedColumn`. https://github.com/Textualize/rich/pull/3332
23+
24+
## [13.8.1] - 2024-09-10
25+
26+
### Fixed
27+
28+
- Added support for Python 3.13 https://github.com/Textualize/rich/pull/3481
29+
- Fixed infinite loop when appending Text to same instance https://github.com/Textualize/rich/pull/3480
30+
31+
## [13.8.0] - 2024-08-26
32+
33+
### Fixed
34+
35+
- Fixed `Table` rendering of box elements so "footer" elements truly appear at bottom of table, "mid" elements in main table body.
36+
- Fixed styles in Panel when Text objects are used for title https://github.com/Textualize/rich/pull/3401
37+
- Fix pretty repr for `collections.deque` https://github.com/Textualize/rich/pull/2864
38+
- Thread used in progress.track will exit if an exception occurs in a generator https://github.com/Textualize/rich/pull/3402
39+
- Progress track thread is now a daemon thread https://github.com/Textualize/rich/pull/3402
40+
- Fixed cached hash preservation upon clearing meta and links https://github.com/Textualize/rich/issues/2942
41+
- Fixed overriding the `background_color` of `Syntax` not including padding https://github.com/Textualize/rich/issues/3295
42+
- Fixed pretty printing of dataclasses with a default repr in Python 3.13 https://github.com/Textualize/rich/pull/3455
43+
- Fixed selective enabling of highlighting when disabled in the `Console` https://github.com/Textualize/rich/issues/3419
44+
- Fixed BrokenPipeError writing an error message https://github.com/Textualize/rich/pull/3468
45+
- Fixed superfluous space above Markdown tables https://github.com/Textualize/rich/pull/3469
46+
- Fixed issue with record and capture interaction https://github.com/Textualize/rich/pull/3470
47+
- Fixed control codes breaking in `append_tokens` https://github.com/Textualize/rich/pull/3471
48+
- Fixed exception pretty printing a dataclass with missing fields https://github.com/Textualize/rich/pull/3472
49+
50+
### Changed
51+
52+
- `RichHandler` errors and warnings will now use different colors (red and yellow) https://github.com/Textualize/rich/issues/2825
53+
- Removed the empty line printed in jupyter while using `Progress` https://github.com/Textualize/rich/pull/2616
54+
- Running tests in environment with `FORCE_COLOR` or `NO_COLOR` environment variables
55+
- ansi decoder will now strip problematic private escape sequences (like `\x1b7`) https://github.com/Textualize/rich/pull/3278/
56+
- Tree's ASCII_GUIDES and TREE_GUIDES constants promoted to class attributes
57+
58+
### Added
59+
60+
- Adds a `case_sensitive` parameter to `prompt.Prompt`. This determines if the
61+
response is treated as case-sensitive. Defaults to `True`.
62+
- Added `Console.on_broken_pipe` https://github.com/Textualize/rich/pull/3468
63+
864
## [13.7.1] - 2024-02-28
965

66+
1067
### Fixed
1168

1269
- Updated the widths of some characters https://github.com/Textualize/rich/pull/3289
@@ -73,7 +130,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
73130

74131
- Text.tab_size now defaults to `None` to indicate that Console.tab_size should be used.
75132

76-
77133
## [13.4.2] - 2023-06-12
78134

79135
### Changed
@@ -128,6 +184,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
128184

129185
- Added Polish README
130186

187+
131188
### Changed
132189

133190
- `rich.progress.track()` will now show the elapsed time after finishing the task https://github.com/Textualize/rich/pull/2659
@@ -2029,6 +2086,8 @@ Major version bump for a breaking change to `Text.stylize signature`, which corr
20292086

20302087
- First official release, API still to be stabilized
20312088

2089+
[13.8.1]: https://github.com/textualize/rich/compare/v13.8.0...v13.8.1
2090+
[13.8.0]: https://github.com/textualize/rich/compare/v13.7.1...v13.8.0
20322091
[13.7.1]: https://github.com/textualize/rich/compare/v13.7.0...v13.7.1
20332092
[13.7.0]: https://github.com/textualize/rich/compare/v13.6.0...v13.7.0
20342093
[13.6.0]: https://github.com/textualize/rich/compare/v13.5.3...v13.6.0

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ In the interest of fostering an open and welcoming environment, we as
66
contributors and maintainers pledge to making participation in our project and
77
our community a harassment-free experience for everyone, regardless of age, body
88
size, disability, ethnicity, sex characteristics, gender identity and expression,
9-
level of experience, education, socio-economic status, nationality, personal
9+
level of experience, education, socioeconomic status, nationality, personal
1010
appearance, race, religion, or sexual identity and orientation.
1111

1212
## Our Standards

CONTRIBUTORS.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,32 @@ The following people have contributed to the development of Rich:
1111
- [Robin Bowes](https://github.com/yo61)
1212
- [Dennis Brakhane](https://github.com/brakhane)
1313
- [Darren Burns](https://github.com/darrenburns)
14+
- [Ceyda Cinarel](https://github.com/cceyda)
1415
- [Jim Crist-Harif](https://github.com/jcrist)
1516
- [Ed Davis](https://github.com/davised)
1617
- [Pete Davison](https://github.com/pd93)
1718
- [James Estevez](https://github.com/jstvz)
19+
- [Jonathan Eunice](https://github.com/jonathan-3play)
1820
- [Aryaz Eghbali](https://github.com/AryazE)
1921
- [Oleksis Fraga](https://github.com/oleksis)
2022
- [Andy Gimblett](https://github.com/gimbo)
2123
- [Kai Giokas](https://github.com/kaisforza)
24+
- [Tom Gooding](https://github.com/TomJGooding)
2225
- [Michał Górny](https://github.com/mgorny)
2326
- [Nok Lam Chan](https://github.com/noklam)
2427
- [Leron Gray](https://github.com/daddycocoaman)
2528
- [Andre Hora](https://github.com/andrehora)
2629
- [Kenneth Hoste](https://github.com/boegel)
2730
- [Lanqing Huang](https://github.com/lqhuang)
2831
- [Finn Hughes](https://github.com/finnhughes)
32+
- [Logan Hunt](https://github.com/dosisod)
33+
- [JP Hutchins](https://github.com/JPhutchins)
2934
- [Ionite](https://github.com/ionite34)
3035
- [Josh Karpel](https://github.com/JoshKarpel)
3136
- [Jan Katins](https://github.com/jankatins)
3237
- [Hugo van Kemenade](https://github.com/hugovk)
3338
- [Andrew Kettmann](https://github.com/akettmann)
39+
- [Alexander Krasnikov](https://github.com/askras)
3440
- [Martin Larralde](https://github.com/althonos)
3541
- [Hedy Li](https://github.com/hedythedev)
3642
- [Henry Mai](https://github.com/tanducmai)
@@ -50,20 +56,24 @@ The following people have contributed to the development of Rich:
5056
- [Kylian Point](https://github.com/p0lux)
5157
- [Kyle Pollina](https://github.com/kylepollina)
5258
- [Sebastián Ramírez](https://github.com/tiangolo)
59+
- [Grant Ramsay](https://github.com/seapagan)
5360
- [Felipe Guedes](https://github.com/guedesfelipe)
5461
- [Min RK](https://github.com/minrk)
5562
- [Clément Robert](https://github.com/neutrinoceros)
5663
- [Brian Rutledge](https://github.com/bhrutledge)
5764
- [Tushar Sadhwani](https://github.com/tusharsadhwani)
5865
- [Luca Salvarani](https://github.com/LukeSavefrogs)
5966
- [Paul Sanders](https://github.com/sanders41)
67+
- [Louis Sautier](https://github.com/sbraz)
6068
- [Tim Savage](https://github.com/timsavage)
6169
- [Anthony Shaw](https://github.com/tonybaloney)
6270
- [Nicolas Simonds](https://github.com/0xDEC0DE)
6371
- [Aaron Stephens](https://github.com/aaronst)
72+
- [Karolina Surma](https://github.com/befeleme)
6473
- [Gabriele N. Tornetta](https://github.com/p403n1x87)
6574
- [Nils Vu](https://github.com/nilsvu)
6675
- [Arian Mollik Wasi](https://github.com/wasi-master)
76+
- [Jan van Wijk](https://github.com/jdvanwijk)
6777
- [Handhika Yanuar Pratama](https://github.com/theDreamer911)
6878
- [za](https://github.com/za)
6979
- [Motahhar Mokfi](https://github.com/motahhar)
@@ -77,3 +87,5 @@ The following people have contributed to the development of Rich:
7787
- [Pierro](https://github.com/xpierroz)
7888
- [Bernhard Wagner](https://github.com/bwagner)
7989
- [Aaron Beaudoin](https://github.com/AaronBeaudoin)
90+
- [chthollyphile](https://github.com/chthollyphile)
91+
- [Jonathan Helmus](https://github.com/jjhelmus)

README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ See what [people are saying about Rich](https://www.willmcgugan.com/blog/pages/p
3939

4040
## Compatibility
4141

42-
Rich works with Linux, OSX, and Windows. True color / emoji works with new Windows Terminal, classic terminal is limited to 16 colors. Rich requires Python 3.7 or later.
42+
Rich works with Linux, macOS and Windows. True color / emoji works with new Windows Terminal, classic terminal is limited to 16 colors. Rich requires Python 3.7 or later.
4343

4444
Rich works with [Jupyter notebooks](https://jupyter.org/) with no additional configuration required.
4545

@@ -437,11 +437,3 @@ See also [Rich CLI](https://github.com/textualize/rich-cli) for a command line a
437437
See also Rich's sister project, [Textual](https://github.com/Textualize/textual), which you can use to build sophisticated User Interfaces in the terminal.
438438

439439
![Textual screenshot](https://raw.githubusercontent.com/Textualize/textual/main/imgs/textual.png)
440-
441-
# Projects using Rich
442-
443-
For some examples of projects using Rich, see the [Rich Gallery](https://www.textualize.io/rich/gallery) on [Textualize.io](https://www.textualize.io).
444-
445-
Would you like to add your own project to the gallery? You can! Follow [these instructions](https://www.textualize.io/gallery-instructions).
446-
447-
<!-- This is a test, no need to translate -->

0 commit comments

Comments
 (0)