-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix-repr-highlighter
- Loading branch information
Showing
13 changed files
with
93 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
alabaster==0.7.12 | ||
Sphinx==4.4.0 | ||
sphinx-rtd-theme==1.0.0 | ||
sphinx-copybutton==0.4.0 | ||
sphinx-copybutton==0.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name = "rich" | ||
homepage = "https://github.com/willmcgugan/rich" | ||
documentation = "https://rich.readthedocs.io/en/latest/" | ||
version = "11.1.0" | ||
version = "11.2.0" | ||
description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal" | ||
authors = ["Will McGugan <[email protected]>"] | ||
license = "MIT" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,35 @@ | ||
if __name__ == "__main__": # pragma: no cover | ||
from rich.console import Console | ||
from rich import inspect | ||
import os | ||
import platform | ||
|
||
from rich import inspect | ||
from rich.console import Console, get_windows_console_features | ||
from rich.panel import Panel | ||
from rich.pretty import Pretty | ||
|
||
|
||
def report() -> None: # pragma: no cover | ||
"""Print a report to the terminal with debugging information""" | ||
console = Console() | ||
inspect(console) | ||
features = get_windows_console_features() | ||
inspect(features) | ||
|
||
env_names = ( | ||
"TERM", | ||
"COLORTERM", | ||
"CLICOLOR", | ||
"NO_COLOR", | ||
"TERM_PROGRAM", | ||
"COLUMNS", | ||
"LINES", | ||
"JPY_PARENT_PID", | ||
"VSCODE_VERBOSE_LOGGING", | ||
) | ||
env = {name: os.getenv(name) for name in env_names} | ||
console.print(Panel.fit((Pretty(env)), title="[b]Environment Variables")) | ||
|
||
console.print(f'platform="{platform.system()}"') | ||
|
||
|
||
if __name__ == "__main__": # pragma: no cover | ||
report() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters