Commit graph

720 commits

Author SHA1 Message Date
ptmcg
32e437a47d Add MofNCompleteColumn ProgressColumn type 2022-02-09 05:39:10 -06:00
Will McGugan
5fafb92f3d
Merge pull request #1904 from mgorny/lexer-name-fix
PyPy3 test fixes
2022-02-09 09:31:15 +00:00
Dennis Brakhane
eb6b5ef87a Add support for enum.Flag in ReprHighlighter
enum.Flag allows more than one bit to be set, and its repr will show
something like <Permission.READ|WRITE: 3>.

For this to display correctly, we need to add the pipe symbol to the
tag regex.
2022-02-05 19:12:21 +01:00
Will McGugan
b595887672
Merge pull request #1894 from ptmcg/ptmcg/add_default_columns_classmethod
Add default_columns classmethod to Progress class
2022-02-04 13:33:26 +00:00
Michał Górny
f15dc3ea0b Fix test_inspect failures on PyPy3
Mark the test_inspect tests failing on PyPy3 due to different output
to be skipped appropriately.
2022-02-01 15:11:53 +01:00
Michał Górny
8e3a0be6fb Fix test_syntax not to use identity comparison on string
Fix test_syntax to compare strings via "==" rather than "is", in order
to fix test failure on PyPy3.
2022-02-01 12:28:58 +01:00
ptmcg
76e234b79d Rename default_columns to get_default_columns, and add docstring 2022-01-31 13:09:51 -06:00
ptmcg
b0794522a6 Add default_columns classmethod to Progress class 2022-01-31 08:29:01 -06:00
Darren Burns
b1673d029b Prevent too broad except clause in test 2022-01-31 14:25:36 +00:00
Darren Burns
b90c33eae7 Fix test in traceback, remove the no-eval pre-commit hook 2022-01-31 14:24:33 +00:00
Will McGugan
fcd684dd3a
Merge pull request #1874 from Textualize/inspect-methods-bugfix
Handle classes in inspect when methods=True
2022-01-27 16:46:00 +00:00
Darren Burns
8ceeb83fd4 Update changelog, add test for inspecting modules containing classes 2022-01-27 12:36:07 +00:00
Darren Burns
9247705bd8 Allow override of lexer in Syntax.from_path 2022-01-27 10:38:55 +00:00
Darren Burns
14190d0844 Merge branch 'master' of github.com:willmcgugan/rich into expose-syntax-guess-lexer 2022-01-25 10:58:26 +00:00
Darren Burns
49e9fe9bd2 Improving Syntax.guess_lexer test 2022-01-25 10:55:34 +00:00
Darren Burns
15e72ab433 Tidying up Syntax.guess_lexer, adding test 2022-01-25 10:54:49 +00:00
Darren Burns
1eb4f5db0d
Merge branch 'master' into revert-1832-epsq-widths 2022-01-20 09:49:59 +00:00
Darren Burns
4d1a1a9419 Remove unused import 2022-01-19 15:42:35 +00:00
Darren Burns
7a2c37f077 Handle exceptions thrown from isinstance 2022-01-18 11:42:22 +00:00
Darren Burns
009bf5e407
Revert "Fix width measurement of 353 emoji" 2022-01-17 15:02:04 +00:00
Darren Burns
45c1728cfd Ensure single digits dont appear in terminal cell with list 2022-01-13 15:11:56 +00:00
Will McGugan
4abbbd1390 eof 2022-01-08 13:32:46 +00:00
Will McGugan
5b8f4fbe23 added per cell alignment 2022-01-07 20:38:23 +00:00
Will McGugan
1e7778806c test fix 2022-01-07 14:58:29 +00:00
Will McGugan
f220a5085b formatting 2022-01-07 11:49:21 +00:00
Will McGugan
d65c3bd53d
Merge pull request #1813 from aaronst/master
chore: fix typos
2022-01-07 10:27:40 +00:00
Will McGugan
20b30b74d5
Merge pull request #1811 from Textualize/1786-traceback-theme-inheritance
Theme used for Traceback should not inherit defaults
2022-01-07 10:26:52 +00:00
Aaron Stephens
5960f54917 chore: fix typos 2022-01-06 22:44:05 -08:00
Darren Burns
1a053eb9e6 Skip test on Windows 2022-01-06 21:21:30 +00:00
Darren Burns
8e62289754 Add regression test to ensure theme from Console applies to Tracebacks 2022-01-06 21:14:08 +00:00
Darren Burns
0c765bce3c
Merge branch 'master' into 1717-jupyter-pretty 2022-01-06 15:26:01 +00:00
Will McGugan
1b41ebcaa7
Merge pull request #1805 from Textualize/max-depth
max depth arg
2022-01-06 15:20:56 +00:00
Will McGugan
dafb1d567f Merge branch 'max-depth' of github.com:willmcgugan/rich into max-depth 2022-01-06 15:07:24 +00:00
Will McGugan
bff7981788 test max depth of None 2022-01-06 15:07:05 +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
Darren Burns
a3fcdbe210 Extract ipy display hook and add tests around it 2022-01-06 14:17:34 +00:00
Darren Burns
47e6da19d5 Use hardcoded monokai Pygments theme in syntax tests 2022-01-06 11:54:17 +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
Will McGugan
01f95d7e81 max depth arg 2022-01-06 10:33:18 +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
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
Joe Halliwell
64b921727d Add tests for log markup and highlighting 2021-12-31 12:12:56 +00:00
Will McGugan
260508bfa0 fix for overlapping markip 2021-12-14 17:57:11 +00:00
Patrick Arminio
6c2510ed11
Use only one argument for passing a lexer 2021-12-12 12:31:40 +00:00
Will McGugan
1c543b746d tests for markup property 2021-12-11 16:41:19 +00:00
Patrick Arminio
7d03118a9e
Add lexer parameter to Syntax 2021-12-09 19:15:25 +00:00
Will McGugan
32eb5465ea from_ansi method 2021-11-28 16:22:51 +00:00