Commit Graph

3037 Commits

Author SHA1 Message Date
Will McGugan 8745ee5a11 progress docs 2022-04-01 14:49:02 +01:00
Will McGugan 56227ab383 docs for new progress feature 2022-04-01 14:17:21 +01:00
Will McGugan dc3998a821
Merge pull request #2133 from Textualize/lexer-not-found-fix
Fallback to text lexer when lexer not found
2022-04-01 10:23:44 +01:00
Will McGugan 15b4dd6446
Merge pull request #2138 from akettmann-e24/typo-fix
typo fix
2022-04-01 09:42:16 +01:00
akettmann-e24 440c660d1f
typo fix 2022-03-31 12:58:23 -05:00
Will McGugan 3f619757ed
Merge pull request #1759 from althonos/progress-reader
Add API to support tracking progress while reading from a file
2022-03-30 15:19:28 +01:00
Martin Larralde 5717d8d13c Add ignore codes for `mypy` in `rich.progress` 2022-03-30 15:13:14 +02:00
Darren Burns 7a870e4a4b
Merge branch 'master' into progress-reader 2022-03-30 13:42:58 +01:00
Martin Larralde 76953e2a59 Remove `_Reader.readall` method since wrapped object may not all have one 2022-03-30 14:39:16 +02:00
Martin Larralde bb9790eb8f Force keyword arguments for `Progress.wrap_file` arguments after `total` 2022-03-30 14:22:28 +02:00
Darren Burns b7777936f5
Update CHANGELOG 2022-03-30 12:32:18 +01:00
Martin Larralde 54d660def1 Update example for `wrap_file` in `rich.progress` API documentation 2022-03-30 13:26:37 +02:00
Darren Burns c77dbb4888
Fallback to text lexer when no suitable lexer found 2022-03-30 12:25:57 +01:00
Martin Larralde 5ea30326fe Force keyword arguments for `Progress.open` options not in builtin `open` 2022-03-30 13:22:29 +02:00
Darren Burns 189a2a3fdb
Merge branch 'master' of github.com:Textualize/rich 2022-03-30 09:20:08 +01: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
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