Commit graph

3376 commits

Author SHA1 Message Date
Will McGugan
9dd56e0b5d
Merge pull request #1926 from ptmcg/ptmcg_task_progress_use_deque_with_maxlen
task._progress change default_factory to create deque(maxlen=1000), t…
2022-02-07 09:52:50 +00:00
Will McGugan
0ffbf93eb9
Merge pull request #1925 from ptmcg/ptmcg/add_default_columns_classmethod
Update CONTRIBUTORS.md and CHANGELOG.md with changes related to addin…
2022-02-07 09:44:05 +00:00
ptmcg
e4f48cc612 Update CONTRIBUTORS.md and CHANGELOG.md with changes related to adding Progress.get_default_columns 2022-02-06 14:03:39 -06:00
ptmcg
e1c595c7e5 task._progress change default_factory to create deque(maxlen=1000), to avoid run-time while loop to trim to length 1000 2022-02-06 13:53:06 -06:00
Dennis Brakhane
eec7110b45 Update changelog and contributers 2022-02-05 19:45:26 +01:00
Dennis Brakhane
68d3dfce34 Cleanup regex
Special characters lose their special meaning in character sets, so
there's no need to escape them with a backslash. Furthermore,
some backslash escaped characters have no special meaning,
so the backslash can be removed as well.

"]" does normally close a set, except when it's the first character.
Similarly, "-" has no special meaning at the beginning or the end.
Therefore, the order in a few character sets had to be slightly
modified.

Just to be sure, the old and new versions of the regexp were confirmed
to be equivalent via re.compile with the re.DEBUG flag and comparing the
output.
2022-02-05 19:39:39 +01: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
Aaron Stephens
07403709b9 chore: black formatting 2022-02-04 13:55:00 -08:00
Aaron Stephens
bdd1fd77ab feat: optional RichHandler keywords 2022-02-04 13:25:56 -08:00
Darren Burns
bcbaed2b95 Added rich.diagnose.report note to CHANGELOG.md 2022-02-04 14:23:32 +00:00
Darren Burns
29bc5dd490 Add missing return type annotation to diagnose.report 2022-02-04 14:19:15 +00:00
Darren Burns
bdad740de9 Update issue template 2022-02-04 14:10:12 +00:00
dependabot[bot]
96eef2d2b1
Bump pytest from 6.2.5 to 7.0.0
Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.2.5 to 7.0.0.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/6.2.5...7.0.0)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-04 13:56:25 +00:00
Darren Burns
731f984822 Expose diagnose.report as a function add a little more info to hint at environment 2022-02-04 13:51:58 +00:00
Will McGugan
880693db5b
Merge pull request #1862 from l10n-tw/l10n-tw
Add Traditional Chinese readme and corresponding texts in __main__.py
2022-02-04 13:34:39 +00: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
Paulo S. Costa
7df2aaccc1 Document '{stylesheet}' in code_format 2022-02-03 22:29:03 -08: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
Will McGugan
94273ee703
Merge pull request #1897 from Carreau/typo
Typo: THe -> The
2022-01-31 17:59:16 +00:00
Matthias Bussonnier
5c586b67ef Typo: THe -> The 2022-01-31 18:57:47 +01:00
Darren Burns
a950aaa7b0
Merge pull request #1895 from Textualize/us-ansi-color-names
Add US spelling of "gray" to colour names
2022-01-31 15:01:03 +00:00
Darren Burns
c17cf5ae74 Add Added header to Unreleased section of changelog 2022-01-31 14:49:41 +00:00
Darren Burns
7c64d6f72d Update CHANGELOG.md r.e. support for US ANSI gray 2022-01-31 14:38:04 +00:00
Darren Burns
ec1ec9d30a Add US spelling of "gray" to colour names 2022-01-31 14:35:58 +00:00
Will McGugan
bd11aa53c1
Merge pull request #1893 from Textualize/traceback-coverage
Traceback coverage
2022-01-31 14:32:02 +00: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
toto6038
51e7503e5e
Merge branch 'master' into l10n-tw 2022-01-30 01:28:11 +08:00
Will McGugan
633faab16d
Merge pull request #1884 from yuval-curv/master
Tables - Column - Fix documentation of no_wrap option
2022-01-29 15:35:17 +00:00
Yuval Ben Arie
1e6fb1876b Table no_wrap documentation fix 2022-01-29 15:50:09 +02:00
Will McGugan
3f7d3e4ef3 changelog 2022-01-28 14:45:56 +00:00
Will McGugan
e5317f638c bump version 2022-01-28 14:44:58 +00:00
Will McGugan
26da2787c0 sort changelog 2022-01-28 14:44:27 +00:00
Will McGugan
47e83e16fe blurb 2022-01-28 14:41:06 +00:00
Alex Strick van Linschoten
5c4b4e6dc6
Fix codecov badge
Used a badge from shields.io which wasn't failing.
2022-01-28 13:15:50 +01: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
Will McGugan
232c8aaa66
Merge pull request #1873 from Textualize/syntax-from-path-lexer
Allow override of lexer in Syntax.from_path
2022-01-27 16:44:54 +00:00
Will McGugan
5407d8006f
Merge pull request #1875 from Textualize/add-pager-clarification-to-docs
Add note about MANPAGER environment variable to docs
2022-01-27 16:39:55 +00:00
Darren Burns
57acc6f4bc Add note about MANPAGER environment variable to docs 2022-01-27 16:21:14 +00:00
Darren Burns
d7f5acbe6a
Merge branch 'master' into syntax-from-path-lexer 2022-01-27 15:03:42 +00:00
Darren Burns
8ceeb83fd4 Update changelog, add test for inspecting modules containing classes 2022-01-27 12:36:07 +00:00
toto6038
1bbae0951f
Merge branch 'Textualize:master' into l10n-tw 2022-01-27 20:19:28 +08:00
toto6038
e9cf4caa58
Remove trailing LF character 2022-01-27 20:18:26 +08:00
toto6038
1ea00c3c47
Remove Trad. Chinese texts in __main__.py 2022-01-27 20:13:46 +08:00
Darren Burns
f715403f1a Handle classes in inspect when methods=True 2022-01-27 11:53:34 +00:00
Will McGugan
09f2fa8710
Merge pull request #1872 from Textualize/expose-syntax-guess-lexer
Syntax should always justify left
2022-01-27 10:47:54 +00:00
Darren Burns
308f433f4e Fix ordering in docstring 2022-01-27 10:42:54 +00:00