diff --git a/src/tox.ini b/src/tox.ini index 4e638bf66cf..27c2ef5bca6 100644 --- a/src/tox.ini +++ b/src/tox.ini @@ -243,6 +243,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 cb69bbb93ea..ab30f519a29 100644 --- a/tox.ini +++ b/tox.ini @@ -1090,6 +1090,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/}