Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolving Issue #11666 - Using Richer Color Terminal Formatters #12317

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pandula12
Copy link

Hi,
This pull request attempts to resolve issue #11666 by implementing richer color terminal formatters from the pygments library.

Description

Many of the changes made were by referring to the previously closed pull request #11700 .The author of that pull request made several changes such as importing the Terminal256Formatter and TerminalTrueColorFormatter alongside the previously used TerminalFormatter. User environment variables were taken to decide which formatter would be used. However, the author of the issue stated that user configuration of the style used by the formatters is preffered (by using the environment variable PYTEST_THEME). The contributor attempted this but had errors due to PYTEST_THEME returning 'None'.

Changes

Terminal256Formatter, TerminalTrueColorFormatter and TerminalFormatter are used depending on environment variables.

Style of Terminal256Formatter and TerminalTrueColorFormatter is determined by the PYTEST_THEME environment variable.

In the case PYTEST_THEME returns 'None', the default style is used instead.

This is my first attempt at contributing to an open source project so any feedback or criticisms are welcome.

Thank you,
Pandula

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant