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 6ede4aeebbc..7eeaf0f4b96 100644 --- a/tox.ini +++ b/tox.ini @@ -1086,6 +1086,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/}