Commit graph

3376 commits

Author SHA1 Message Date
Will McGugan
3974a9ef82
Update rich/pretty.py
Co-authored-by: Darren Burns <darrenburns@users.noreply.github.com>
2022-01-06 15:05:11 +00:00
Will McGugan
76b5dd233a
Update tests/test_pretty.py
Co-authored-by: Darren Burns <darrenburns@users.noreply.github.com>
2022-01-06 15:04:47 +00:00
Will McGugan
972c43ed32
Merge pull request #1807 from Gcat101/master
Added Russian README
2022-01-06 15:03:10 +00:00
Will McGugan
2982c2d5a0
Merge pull request #1808 from Textualize/pre-commit
Added pre-commit
2022-01-06 14:37:53 +00:00
Will McGugan
c417aec782 eof 2022-01-06 14:30:08 +00:00
G_cat
9d0ca53f0a Added russian README 2022-01-06 17:27:37 +03:00
Darren Burns
a3fcdbe210 Extract ipy display hook and add tests around it 2022-01-06 14:17:34 +00:00
dependabot[bot]
703d40168f
Bump pygments from 2.11.1 to 2.11.2
Bumps [pygments](https://github.com/pygments/pygments) from 2.11.1 to 2.11.2.
- [Release notes](https://github.com/pygments/pygments/releases)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Commits](https://github.com/pygments/pygments/compare/2.11.1...2.11.2)

---
updated-dependencies:
- dependency-name: pygments
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-06 13:30:10 +00:00
Will McGugan
f5829f7f9f
Merge pull request #1730 from nathanrpage97/feat/docs-add-default-theme-appendix
Docs add default theme appendix
2022-01-06 12:02:36 +00:00
Will McGugan
fe750a5213
Merge pull request #1796 from Textualize/dependabot/pip/pygments-2.11.1
Bump pygments from 2.10.0 to 2.11.1
2022-01-06 11:59:20 +00:00
Darren Burns
47e6da19d5 Use hardcoded monokai Pygments theme in syntax tests 2022-01-06 11:54:17 +00:00
Will McGugan
6b49f36138
Merge pull request #1787 from AaronBeaudoin/patch-1
Fix flipped traceback border styles
2022-01-06 11:51:52 +00:00
Darren Burns
23bc0a2d7c Update CHANGELOG.md 2022-01-06 11:18:50 +00:00
Darren Burns
5f311dc2d7 Try using monokai theme to avoid ubuntu/macos variance 2022-01-06 11:10:38 +00:00
Darren Burns
2cf35b18a8 Try using default theme in test to avoid ubuntu/macos variance 2022-01-06 11:07:23 +00:00
Darren Burns
3ac1b578cd Running make format with correct Black version 2022-01-06 10:47:36 +00:00
Will McGugan
3999c8a8e6 changelog 2022-01-06 10:45:33 +00:00
Darren Burns
7c7b1acf7d Merge branch 'master' of github.com:willmcgugan/rich into dependabot/pip/pygments-2.11.1 2022-01-06 10:45:13 +00:00
Will McGugan
01f95d7e81 max depth arg 2022-01-06 10:33:18 +00:00
Darren Burns
35795dc9e9 Add darrenburns to CONTRIBUTORS.md 2022-01-06 10:08:40 +00:00
Darren Burns
61a5dabb7a Merge branch 'master' of github.com:willmcgugan/rich into 1717-jupyter-pretty 2022-01-06 10:05:50 +00:00
Darren Burns
f48339e7b5 Fix formatting 2022-01-06 10:05:39 +00:00
Darren Burns
39edbf69ad Check for _repr_*_ methods notebooks can display
For all of the mimetypes that Jupyter notebook can display,
we check if the method exists and ensure it doesn't return None.
If this is the case, we delegate rendering to the notebook. Otherwise,
Rich will be used to render.

https://ipython.readthedocs.io/en/stable/config/integrating.html#rich-display
2022-01-06 09:56:15 +00:00
Will McGugan
bf23d03893
Merge pull request #1800 from Textualize/environ-fix
fix environment to empty in tests
2022-01-05 17:12:53 +00:00
Will McGugan
13589da335 for environment to empty in tests 2022-01-05 14:40:36 +00:00
Will McGugan
22989e4212
Merge pull request #1748 from patrick91/feature/allow-to-pass-lexer-instance
Add lexer parameter to Syntax
2022-01-05 14:22:40 +00:00
Will McGugan
5ca63d798f
Merge pull request #1795 from aaronst/master
docs: fix typos and whitespace
2022-01-05 11:50:34 +00:00
Will McGugan
3ac7b5cf86
Update comment.yml 2022-01-05 11:47:08 +00:00
Will McGugan
9b71f5b723
Remove links to sponsorship 2022-01-05 11:43:55 +00:00
Nathan Page
854638f54e clean up diffs 2022-01-03 11:30:48 -05:00
Nathan Page
ef943a95a2 remove default_styles table from appendix 2022-01-03 11:25:57 -05:00
dependabot[bot]
f12cea1aaf
Bump pygments from 2.10.0 to 2.11.1
Bumps [pygments](https://github.com/pygments/pygments) from 2.10.0 to 2.11.1.
- [Release notes](https://github.com/pygments/pygments/releases)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Commits](https://github.com/pygments/pygments/compare/2.10.0...2.11.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 13:04:53 +00:00
Aaron Stephens
c3469772a4 docs: fix typos and whitespace 2022-01-03 01:04:35 -08:00
Will McGugan
2ba277ac54
Merge pull request #1793 from willmcgugan/escape_at
fix at escape
2022-01-02 17:05:37 +00:00
Will McGugan
e839bfb359 additional test 2022-01-02 16:53:27 +00:00
Will McGugan
4b1293e00d fix at escape 2022-01-02 16:51:41 +00:00
Will McGugan
1d5152ef52 fix code block 2022-01-02 15:50:38 +00:00
Will McGugan
7331ca6b63
Merge pull request #1789 from willmcgugan/dependabot/pip/attrs-21.4.0
Bump attrs from 21.2.0 to 21.4.0
2022-01-01 11:03:19 +00:00
Will McGugan
a1c76b2168
Merge pull request #1781 from MaxG87/master
Improve installation snippets
2022-01-01 11:02:53 +00:00
Will McGugan
c00a665522
Merge pull request #1753 from joehalliwell/per_message_log_highlighting
Per message log highlighting
2021-12-31 13:35:01 +00:00
Joe Halliwell
8a3dc753ce Remove unused import 2021-12-31 13:24:20 +00:00
Joe Halliwell
300cff65b9 Use getattr's built-in default 2021-12-31 13:24:20 +00:00
Patrick Arminio
de7ed16f71
Add docstring 2021-12-31 13:29:26 +01:00
Patrick Arminio
a8ae7b5c1e
Fix for mypy 2021-12-31 13:26:43 +01:00
Joe Halliwell
23daac5d01 Add documentation 2021-12-31 12:12:56 +00:00
Joe Halliwell
64b921727d Add tests for log markup and highlighting 2021-12-31 12:12:56 +00:00
Joe Halliwell
86e0887b1d Add per-message override for log highlighter 2021-12-31 12:12:56 +00:00
dependabot[bot]
704501f8a5
Bump attrs from 21.2.0 to 21.4.0
Bumps [attrs](https://github.com/python-attrs/attrs) from 21.2.0 to 21.4.0.
- [Release notes](https://github.com/python-attrs/attrs/releases)
- [Changelog](https://github.com/python-attrs/attrs/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/python-attrs/attrs/compare/21.2.0...21.4.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-31 11:11:49 +00:00
Will McGugan
1ba0dc6a46
Merge pull request #1773 from willmcgugan/dependabot/pip/mypy-0.930
Bump mypy from 0.920 to 0.930
2021-12-31 11:07:44 +00:00
dependabot[bot]
a4a4969d7e
Bump mypy from 0.920 to 0.930
Bumps [mypy](https://github.com/python/mypy) from 0.920 to 0.930.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.920...v0.930)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-31 10:55:57 +00:00