Skip to content

Commit

Permalink
Restore coloring for console and CI (jazzband#1765)
Browse files Browse the repository at this point in the history
As tox v4 included some side-effects, that will restore the lost colors.
  • Loading branch information
ssbarnea committed Dec 11, 2022
1 parent f54db0e commit faa37dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
PIP_NO_PYTHON_VERSION_WARNING: 1
PIP_NO_WARN_SCRIPT_LOCATION: 1
PRE_COMMIT_COLOR: 1
PY_COLORS: 1 # Recognized by the `py` package, dependency of `pytest`
TOX_PARALLEL_NO_SPINNER: 1
TOX_TESTENV_PASSENV: >-
Expand All @@ -29,6 +30,7 @@ env:
PY_COLORS
PYTEST_THEME
PYTEST_THEME_MODE
PRE_COMMIT_COLOR
jobs:
test:
Expand Down
4 changes: 4 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ commands_pre =
commands = pytest {posargs}
passenv =
CI
FORCE_COLOR
GITHUB_ACTIONS
MYPY_FORCE_COLOR
PRE_COMMIT_COLOR
PY_COLORS
pip_pre=True

[testenv:checkqa]
Expand Down

0 comments on commit faa37dd

Please sign in to comment.