Commit graph

3376 commits

Author SHA1 Message Date
Handhika Yanuar Pratama
d08fe13809
Update CONTRIBUTORS.md 2022-03-30 04:12:25 +07:00
Handhika Yanuar Pratama
feae461aa5
Exclude ./README.id.md
Excluding ./README.it.md so the workflow test could be passed
2022-03-30 04:07:26 +07:00
Henry Schreiner
d42a6da016
fix(types): typing fixes exposed by extra checking
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
2022-03-29 14:02:11 -04:00
Darren Burns
9f43cccfce
Exporting console content to SVG (#2101)
* Add skeleton export_svg and save_svg methods to Console

* Exporting SVG

* SVG export - Writing HTML foreign object into naively calculated SVG rect background

* Exporting as foreign object SVG

* Working with drop-shadow

* Update terminal output style to include tab and background/border

* Add more terminal themes, support dim, reverse in SVG output

* Fix some HTML export tests

* Allow for templating of SVG output

* Fix mypy issue involving shadowed variable in SVG export

* Remove unused code from main block in console.py

* Remove unused record=True in __main__.py Console init

* Small tidy ups in console.py SVG export

* Add test for exporting to SVG

* Add tests for export SVG and save SVG

* Update docs with info on SVG exports

* Add support for blink and blink2 to SVG export, use Fira Code webfont fallback

* Update tests for SVG exporting

* Add more information to docs about SVG exporting

* Update SVG exporting tests

* Explain how to use different terminal theme in SVG export docs

* Remove some development testing code

* Remove some more testing code

* Improve docs, fix typo

* Fixing a typo

* Add note to changelog about SVG export functionality

* Use CSS styling instead of inline styles on SVG export

* Fix issues noted in code review, fix reverse style

* Update SVG used in Rich docs
2022-03-29 17:34:14 +01:00
Will McGugan
bb8c0d3521
Merge pull request #2130 from henryiii/henryiii/chore/mypy6
chore(types): include error code on type ignores
2022-03-29 17:26:06 +01:00
Henry Schreiner
7105781184
chore(types): include error code on type ignores
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
2022-03-29 12:16:16 -04:00
Will McGugan
a80528ffcb
Merge pull request #2128 from Textualize/dependabot/pip/black-22.3.0
Bump black from 22.1.0 to 22.3.0
2022-03-29 17:02:54 +01:00
Will McGugan
058e692770
Merge pull request #2124 from Textualize/dependabot/pip/sphinx-4.5.0
Bump sphinx from 4.4.0 to 4.5.0
2022-03-29 17:02:26 +01:00
Will McGugan
1af4156fea
Merge pull request #2125 from henryiii/henryiii/chore/mypy5
fix(types): remove a few more type ignores
2022-03-29 17:02:01 +01:00
dependabot[bot]
b89ff3c908
Bump black from 22.1.0 to 22.3.0
Bumps [black](https://github.com/psf/black) from 22.1.0 to 22.3.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/22.1.0...22.3.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-29 13:34:14 +00:00
Henry Schreiner
5251db4a02
fix(types): remove a few more type ignores 2022-03-28 15:06:09 -04:00
dependabot[bot]
7825454915
Bump sphinx from 4.4.0 to 4.5.0
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 4.4.0 to 4.5.0.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v4.4.0...v4.5.0)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-28 13:36:28 +00:00
Will McGugan
e10bebff03
Merge pull request #2091 from henryiii/henryiii/chore/mypy2
refactor: remove mypy generics workaround
2022-03-27 22:34:45 +01:00
Will McGugan
fbc831ea17
Merge pull request #2110 from henryiii/henryiii/chore/mypy4
fix(types): use Type[T] instead of T for cls
2022-03-26 15:40:01 +00:00
Will McGugan
7a7f1fdb00
Merge pull request #2109 from henryiii/henryiii/fix/pyclnunused
fix: keep pycln from removing load_ipython_extension
2022-03-26 15:32:24 +00:00
Will McGugan
bb83a7845b
Merge pull request #2105 from Textualize/dependabot/pip/mypy-0.942
Bump mypy from 0.941 to 0.942
2022-03-26 15:31:49 +00:00
Will McGugan
a2d58006ab
Merge pull request #2090 from henryiii/henryiii/chore/mypy1
chore: modern mypy config
2022-03-26 15:31:24 +00:00
Will McGugan
826622fc11
Missing space 2022-03-26 15:26:48 +00:00
Will McGugan
dbdbfd5daf
Merge pull request #2118 from Textualize/ansi-fix
fix for ansi issue
2022-03-26 15:25:16 +00:00
Will McGugan
6dfb81da3c simplify 2022-03-26 15:21:29 +00:00
Will McGugan
04677ffb5f typing fix 2022-03-26 15:15:11 +00:00
Will McGugan
207b522f3b typing syntax 2022-03-26 14:44:17 +00:00
Will McGugan
9faafa0ab1 fix for ansi issue 2022-03-26 14:40:20 +00:00
Will McGugan
0436c6d852 simplification 2022-03-26 13:10:37 +00:00
Will McGugan
330efb41d7 changelog 2022-03-26 13:00:45 +00:00
Will McGugan
f7aa3fb78e fix for ansi issue 2022-03-26 12:59:20 +00:00
Handhika Yanuar Pratama
d31406d67e
adding indonesian translation for readme 2022-03-26 00:32:00 +07:00
Henry Schreiner
6b9f353c87
fix(types): use type[T] instead of T for cls
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
2022-03-25 11:50:05 -04:00
Henry Schreiner
09cab8be7e
fix: keep pycln from removing load_ipython_extension 2022-03-25 11:36:22 -04:00
Will McGugan
1d4ebb2173
Merge pull request #2108 from UltraStudioLTD/patch-1
Return IPython extension
2022-03-25 14:52:13 +00:00
Luka Mamukashvili
25becd78d7
Update CONTRIBUTORS.md 2022-03-25 18:49:54 +04:00
Luka Mamukashvili
28beb14f50
Return IPython extension 2022-03-25 18:43:32 +04:00
dependabot[bot]
d2ba503fef
Bump mypy from 0.941 to 0.942
Bumps [mypy](https://github.com/python/mypy) from 0.941 to 0.942.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.941...v0.942)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-25 13:36:44 +00:00
Will McGugan
cad92aa56c remove superfluous block 2022-03-23 14:27:49 +00:00
Will McGugan
f95d63d1aa
Merge pull request #2095 from wasi-master/fix-text-from-markup-end-param
Add missing `end` keyword argument to `Text.from_markup`
2022-03-22 17:21:16 +00:00
Wasi Master
f06da9b94c
Format with black 2022-03-22 20:17:21 +06:00
Wasi Master
fc292780aa
Add test for the end parameter 2022-03-22 20:13:30 +06:00
Wasi Master
5b3f9bbfa8
Add missing end keyword argument to Text.from_markup
Closes https://github.com/Textualize/rich/issues/2054
2022-03-22 18:32:47 +06:00
Will McGugan
2d3152a230
Merge pull request #2093 from Textualize/v12.0.1
version bump
2022-03-22 11:10:21 +00:00
Will McGugan
2956b5d9ca changes 2022-03-22 11:01:54 +00:00
Will McGugan
037da64d83 version bump 2022-03-22 10:59:25 +00:00
Henry Schreiner
c44a08fd8e
refactor: remove mypy generics workaround
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
2022-03-21 15:49:30 -04:00
Henry Schreiner
93b1a4202b
Update pyproject.toml 2022-03-21 13:35:33 -04:00
Henry Schreiner
3a5fbd270c
chore: modern mypy config
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
2022-03-21 13:30:43 -04:00
Will McGugan
1572d87854
Merge pull request #2089 from Textualize/recursive-rich-cast
allow rich cast to return rich cast
2022-03-21 17:08:16 +00:00
Will McGugan
e23b0bb3da allow rich cast to return rich cast 2022-03-21 16:55:18 +00:00
Will McGugan
ef1b9b91cc
Merge pull request #2088 from Textualize/panel-heading-glitch
panel bug
2022-03-21 16:39:38 +00:00
Will McGugan
6d443ddaf0 panel bug 2022-03-21 16:31:41 +00:00
Martin Larralde
130f5b4e1d Reformat code in rich.progress 2022-03-21 14:21:13 +01:00
Martin Larralde
aa5ca607eb Fix failing tests in tests.test_progress 2022-03-21 13:32:11 +01:00