Skip to content

Commit 1a97825

Browse files
authored
Merge branch 'master' into clean-cached-hash
2 parents bff145f + 610fd75 commit 1a97825

Some content is hidden

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

92 files changed

+2171
-1551
lines changed

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
# These are supported funding model platforms
22

3-
ko_fi: textualize

.github/workflows/codeql.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ 'master' ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ 'master' ]
9+
schedule:
10+
- cron: '38 19 * * 5'
11+
12+
jobs:
13+
analyze:
14+
name: Analyze
15+
runs-on: ubuntu-latest
16+
permissions:
17+
actions: read
18+
contents: read
19+
security-events: write
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language: [ 'python' ]
25+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
26+
# Use only 'java' to analyze code written in Java, Kotlin or both
27+
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
28+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
29+
30+
steps:
31+
- name: Checkout repository
32+
uses: actions/checkout@v4
33+
34+
# Initializes the CodeQL tools for scanning.
35+
- name: Initialize CodeQL
36+
uses: github/codeql-action/init@v2
37+
with:
38+
languages: ${{ matrix.language }}
39+
# If you wish to specify custom queries, you can do so here or in a config file.
40+
# By default, queries listed here will override any specified in a config file.
41+
# Prefix the list here with "+" to use these queries and those in the config file.
42+
43+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
44+
# queries: security-extended,security-and-quality
45+
46+
47+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
48+
# If this step fails, then you should remove it and run the build manually (see below)
49+
- name: Autobuild
50+
uses: github/codeql-action/autobuild@v2
51+
52+
# ℹ️ Command-line programs to run using the OS shell.
53+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
54+
55+
# If the Autobuild fails above, remove it and uncomment the following three lines.
56+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
57+
58+
# - run: |
59+
# echo "Run, Build Application using script"
60+
# ./location_of_script_within_repo/buildscript.sh
61+
62+
- name: Perform CodeQL Analysis
63+
uses: github/codeql-action/analyze@v2
64+
with:
65+
category: "/language:${{matrix.language}}"

.github/workflows/codespell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
codespell:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v3
7+
- uses: actions/checkout@v4
88
- run: python3 -m pip install codespell
99
- run: codespell --ignore-words-list="ba,fo,hel,revered,womens"
1010
--skip="./README.*.md,*.svg,*.ai,./benchmarks/snippets.py,./tests,./tools"

.github/workflows/newissue.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ jobs:
88
permissions:
99
issues: write
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
with:
1313
ref: master
1414
- name: Install FAQtory
1515
run: pip install FAQtory
1616
- name: Run Suggest
17-
run: faqtory suggest "${{ github.event.issue.title }}" > suggest.md
17+
env:
18+
TITLE: ${{ github.event.issue.title }}
19+
run: faqtory suggest "$TITLE" > suggest.md
1820
- name: Read suggest.md
1921
id: suggest
2022
uses: juliangruber/read-file-action@v1

.github/workflows/pythonpackage.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,20 @@ jobs:
88
strategy:
99
matrix:
1010
os: [windows-latest, ubuntu-latest, macos-latest]
11-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11.0"]
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" }
1216
defaults:
1317
run:
1418
shell: bash
1519
steps:
16-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
1721
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v4
22+
uses: actions/setup-python@v5
1923
with:
2024
python-version: ${{ matrix.python-version }}
21-
architecture: x64
2225
- name: Install and configure Poetry
2326
# TODO: workaround for https://github.com/snok/install-poetry/issues/94
2427
uses: snok/install-poetry@v1.3.3

.github/workflows/readmechanged.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
send_notification:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
- name: Send notification to README Authors
1616
env:
1717
GITHUB_TOKEN: ${{ secrets.GHP_README_WORKFLOW }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,5 @@ venv.bak/
117117
# airspeed velocity
118118
benchmarks/env/
119119
benchmarks/html/
120+
121+
sandbox/

.pre-commit-config.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
exclude: benchmarks/
44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v4.0.1
6+
rev: v4.4.0
77
hooks:
88
- id: check-ast
99
- id: check-builtin-literals
1010
- id: check-case-conflict
11-
- id: check-docstring-first
1211
- id: check-merge-conflict
1312
- id: check-json
1413
- id: check-toml
@@ -17,27 +16,29 @@ repos:
1716
- id: mixed-line-ending
1817
- id: check-vcs-permalinks
1918
- id: check-shebang-scripts-are-executable
19+
- id: trailing-whitespace
2020
- repo: https://github.com/pre-commit/pygrep-hooks
21-
rev: v1.9.0
21+
rev: v1.10.0
2222
hooks:
2323
- id: python-check-mock-methods
2424
- id: python-no-log-warn
2525
- id: python-use-type-annotations
2626
- id: rst-directive-colons
2727
- id: rst-inline-touching-normal
2828
- repo: https://github.com/hadialqattan/pycln
29-
rev: v1.2.5
29+
rev: v2.2.2
3030
hooks:
3131
- id: pycln
3232
args: [--all]
3333
- repo: https://github.com/psf/black
34-
rev: 22.3.0
34+
rev: 23.7.0
3535
hooks:
3636
- id: black
3737
exclude: ^benchmarks/
3838
- repo: https://github.com/PyCQA/isort
39-
rev: 5.10.1
39+
rev: 5.12.0
4040
hooks:
4141
- id: isort
42-
exclude: ^benchmarks/
42+
name: isort (python)
43+
language_version: "3.11"
4344
args: ["--profile", "black"]

CHANGELOG.md

Lines changed: 106 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,101 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010

1111
### Fixed
1212

13+
- Fixed `Table` rendering of box elements so "footer" elements truly appear at bottom of table, "mid" elements in main table body.
14+
- Fixed styles in Panel when Text objects are used for title https://github.com/Textualize/rich/pull/3401
15+
- Fix pretty repr for `collections.deque` https://github.com/Textualize/rich/pull/2864
16+
- Thread used in progress.track will exit if an exception occurs in a generator https://github.com/Textualize/rich/pull/3402
17+
- Progress track thread is now a daemon thread https://github.com/Textualize/rich/pull/3402
1318
- Fixed cached hash preservation upon clearing meta and links https://github.com/Textualize/rich/issues/2942
1419

20+
### Changed
21+
22+
- `RichHandler` errors and warnings will now use different colors (red and yellow) https://github.com/Textualize/rich/issues/2825
23+
- Removed the empty line printed in jupyter while using `Progress` https://github.com/Textualize/rich/pull/2616
24+
25+
## [13.7.1] - 2024-02-28
26+
27+
### Fixed
28+
29+
- Updated the widths of some characters https://github.com/Textualize/rich/pull/3289
30+
31+
## [13.7.0] - 2023-11-15
32+
33+
### Added
34+
35+
- Adds missing parameters to Panel.fit https://github.com/Textualize/rich/issues/3142
36+
37+
### Fixed
38+
39+
- Some text goes missing during wrapping when it contains double width characters https://github.com/Textualize/rich/issues/3176
40+
- Ensure font is correctly inherited in exported HTML https://github.com/Textualize/rich/issues/3104
41+
- Fixed typing for `FloatPrompt`.
42+
43+
## [13.6.0] - 2023-09-30
44+
45+
### Added
46+
47+
- Added Python 3.12 to classifiers.
48+
49+
## [13.5.3] - 2023-09-17
50+
51+
### Fixed
52+
53+
- Markdown table rendering issue with inline styles and links https://github.com/Textualize/rich/issues/3115
54+
- Fix Markdown code blocks on a light background https://github.com/Textualize/rich/issues/3123
55+
56+
## [13.5.2] - 2023-08-01
57+
58+
### Fixed
59+
60+
- Fixed Text.expand_tabs assertion error
61+
62+
## [13.5.1] - 2023-07-31
63+
64+
### Fixed
65+
66+
- Fix tilde character (`~`) not included in link regex when printing to console https://github.com/Textualize/rich/issues/3057
67+
68+
## [13.5.0] - 2023-07-29
69+
70+
### Fixed
71+
72+
- Fixed Text.expand_tabs not expanding spans.
73+
- Fixed TimeElapsedColumn from showing negative.
74+
- Fix for escaping strings with a trailing backslash https://github.com/Textualize/rich/issues/2987
75+
- Fixed exception in Markdown with partial table https://github.com/Textualize/rich/issues/3053
76+
- Fixed the HTML export template so that the `<html>` tag comes before the `<head>` tag https://github.com/Textualize/rich/issues/3021
77+
- Fixed issue with custom classes overwriting `__eq__` https://github.com/Textualize/rich/issues/2875
78+
- Fix rich.pretty.install breakage in iPython https://github.com/Textualize/rich/issues/3013
79+
80+
### Added
81+
82+
- Added Text.extend_style method.
83+
- Added Span.extend method.
84+
85+
### Changed
86+
87+
- Text.tab_size now defaults to `None` to indicate that Console.tab_size should be used.
88+
89+
90+
## [13.4.2] - 2023-06-12
91+
92+
### Changed
93+
94+
- Relaxed markdown-it-py dependency
95+
96+
## [13.4.1] - 2023-05-31
97+
98+
### Fixed
99+
100+
- Fixed typing extensions import in markdown https://github.com/Textualize/rich/issues/2979
101+
102+
## [13.4.0] - 2023-05-31
103+
104+
### Added
105+
106+
- Added support for tables in `Markdown` https://github.com/Textualize/rich/pull/2977
107+
15108
## [13.3.5] - 2023-04-27
16109

17110
### Fixed
@@ -48,6 +141,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
48141

49142
- Added Polish README
50143

144+
51145
### Changed
52146

53147
- `rich.progress.track()` will now show the elapsed time after finishing the task https://github.com/Textualize/rich/pull/2659
@@ -65,7 +159,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
65159
- Fixed failing tests due to Pygments dependency https://github.com/Textualize/rich/issues/2757
66160
- Relaxed ipywidgets https://github.com/Textualize/rich/issues/2767
67161

68-
### Added
162+
### Added
69163

70164
- Added `encoding` parameter in `Theme.read`
71165

@@ -926,7 +1020,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9261020
### Added
9271021

9281022
- Added rich.live https://github.com/textualize/rich/pull/382
929-
- Added algin parameter to Rule and Console.rule
1023+
- Added align parameter to Rule and Console.rule
9301024
- Added rich.Status class and Console.status
9311025
- Added getitem to Text
9321026
- Added style parameter to Console.log
@@ -1949,6 +2043,16 @@ Major version bump for a breaking change to `Text.stylize signature`, which corr
19492043

19502044
- First official release, API still to be stabilized
19512045

2046+
[13.7.1]: https://github.com/textualize/rich/compare/v13.7.0...v13.7.1
2047+
[13.7.0]: https://github.com/textualize/rich/compare/v13.6.0...v13.7.0
2048+
[13.6.0]: https://github.com/textualize/rich/compare/v13.5.3...v13.6.0
2049+
[13.5.3]: https://github.com/textualize/rich/compare/v13.5.2...v13.5.3
2050+
[13.5.2]: https://github.com/textualize/rich/compare/v13.5.1...v13.5.2
2051+
[13.5.1]: https://github.com/textualize/rich/compare/v13.5.0...v13.5.1
2052+
[13.5.0]: https://github.com/textualize/rich/compare/v13.4.2...v13.5.0
2053+
[13.4.2]: https://github.com/textualize/rich/compare/v13.4.1...v13.4.2
2054+
[13.4.1]: https://github.com/textualize/rich/compare/v13.4.0...v13.4.1
2055+
[13.4.0]: https://github.com/textualize/rich/compare/v13.3.5...v13.4.0
19522056
[13.3.5]: https://github.com/textualize/rich/compare/v13.3.4...v13.3.5
19532057
[13.3.4]: https://github.com/textualize/rich/compare/v13.3.3...v13.3.4
19542058
[13.3.3]: https://github.com/textualize/rich/compare/v13.3.2...v13.3.3

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

0 commit comments

Comments
 (0)