File tree Expand file tree Collapse file tree 4 files changed +7
-21
lines changed Expand file tree Collapse file tree 4 files changed +7
-21
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ pygments==2.13.0
26
26
pyrsistent==0.19.3
27
27
pyyaml==6.0
28
28
resolvelib==0.8.1
29
- rich==13.0 .0
29
+ rich==13.2 .0
30
30
ruamel-yaml==0.17.21
31
31
setuptools==65.6.3
32
32
subprocess-tee==0.4.1
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ certifi==2022.12.7
16
16
cffi == 1.15.1
17
17
charset-normalizer == 3.0.1
18
18
click == 8.1.3
19
- commonmark == 0.9.1
20
19
coverage == 7.0.5
21
20
coverage-enable-subprocess == 1.0
22
21
cryptography == 39.0.0
@@ -64,7 +63,7 @@ pytz==2022.7.1
64
63
pyyaml == 6.0
65
64
requests == 2.28.2
66
65
resolvelib == 0.8.1
67
- rich == 13.1 .0
66
+ rich == 13.2 .0
68
67
ruamel-yaml == 0.17.21
69
68
ruamel-yaml-clib == 0.2.7
70
69
setuptools == 66.0.0
Original file line number Diff line number Diff line change @@ -56,14 +56,14 @@ repos:
56
56
- prettier-plugin-toml
57
57
- prettier-plugin-sort-json
58
58
- repo : https://github.com/streetsidesoftware/cspell-cli
59
- rev : v6.17.1
59
+ rev : v6.19.2
60
60
hooks :
61
61
- id : cspell
62
62
# entry: codespell --relative
63
63
args : [--relative, --no-progress, --no-summary]
64
64
name : Spell check with cspell
65
65
- repo : https://github.com/sirosen/check-jsonschema
66
- rev : 0.20 .0
66
+ rev : 0.21 .0
67
67
hooks :
68
68
- id : check-github-workflows
69
69
- repo : https://github.com/pre-commit/pre-commit-hooks.git
@@ -169,7 +169,7 @@ repos:
169
169
- filelock
170
170
- jinja2
171
171
- pytest>=7.2.0
172
- - rich>=11.0 .0
172
+ - rich>=13.2 .0
173
173
- ruamel.yaml
174
174
- types-PyYAML
175
175
- types-jsonschema>=4.4.2
@@ -182,7 +182,7 @@ repos:
182
182
plugins/.*
183
183
)$
184
184
- repo : https://github.com/pycqa/pylint
185
- rev : v2.16.0b0
185
+ rev : v2.16.0b1
186
186
hooks :
187
187
- id : pylint
188
188
args :
@@ -196,7 +196,7 @@ repos:
196
196
- jsonschema>=4.9.0
197
197
- pytest>=7.2.0
198
198
- pyyaml
199
- - rich>=11.0 .0
199
+ - rich>=13.2 .0
200
200
- ruamel.yaml
201
201
- sphinx
202
202
- typing_extensions
Original file line number Diff line number Diff line change @@ -88,16 +88,6 @@ def render_yaml(text: str) -> Syntax:
88
88
return Syntax (text , "yaml" , theme = "ansi_dark" )
89
89
90
90
91
- # pylint: disable=redefined-outer-name,unused-argument
92
- def _rich_heading_custom_rich_console (
93
- self : rich .markdown .Heading ,
94
- console : rich .console .Console ,
95
- options : rich .console .ConsoleOptions ,
96
- ) -> rich .console .RenderResult :
97
- """Override for rich console heading."""
98
- yield f"[bold]{ self .level * '#' } { self .text } [/]"
99
-
100
-
101
91
# pylint: disable=redefined-outer-name,unused-argument
102
92
def _rich_codeblock_custom_rich_console (
103
93
self : rich .markdown .CodeBlock ,
@@ -115,7 +105,4 @@ def _rich_codeblock_custom_rich_console(
115
105
yield syntax
116
106
117
107
118
- # Monkey-patch rich to alter its rendering of headings
119
- # https://github.com/python/mypy/issues/2427
120
- rich .markdown .Heading .__rich_console__ = _rich_heading_custom_rich_console # type: ignore
121
108
rich .markdown .CodeBlock .__rich_console__ = _rich_codeblock_custom_rich_console # type: ignore
You can’t perform that action at this time.
0 commit comments