Skip to content

Commit

Permalink
tox.ini, src/tox.ini: Passenv RUFF_OUTPUT_FORMAT in both rust envs
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Feb 24, 2024
1 parent 9a73ded commit f6a8a63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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/}

0 comments on commit f6a8a63

Please sign in to comment.