From f6a8a6302ac733f65356cfa87aa9e1c8c8b1bf5d Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sat, 24 Feb 2024 13:40:11 -0800 Subject: [PATCH] tox.ini, src/tox.ini: Passenv RUFF_OUTPUT_FORMAT in both rust envs --- src/tox.ini | 1 + tox.ini | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/tox.ini b/src/tox.ini index cf013e89fbd..4b7bd566d2c 100644 --- a/src/tox.ini +++ b/src/tox.ini @@ -244,6 +244,7 @@ commands = cython-lint --no-pycodestyle {posargs:{toxinidir}/sage/} description = check against Python style conventions deps = ruff +passenv = RUFF_OUTPUT_FORMAT commands = ruff {posargs:{toxinidir}/sage/} [testenv:ruff-minimal] diff --git a/tox.ini b/tox.ini index 218c32586aa..fc932501597 100644 --- a/tox.ini +++ b/tox.ini @@ -1060,6 +1060,8 @@ commands = tox -c {toxinidir}/src/tox.ini -e {envname} -- {posargs:src/sage/} description = check against Sage's minimal style conventions passenv = {[sage_src]passenv} + # https://github.com/ChartBoost/ruff-action/issues/7#issuecomment-1887780308 + RUFF_OUTPUT_FORMAT envdir = {[sage_src]envdir} allowlist_externals = {[sage_src]allowlist_externals} commands = tox -c {toxinidir}/src/tox.ini -e {envname} -- {posargs:src/sage/}