Skip to content

Commit e41b10c

Browse files
author
Matthias Koeppe
committed
src/tox.ini: Use 'ruff check' instead of 'ruff' to avoid warning
1 parent bfb3842 commit e41b10c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,15 +264,15 @@ description =
264264
check against Python style conventions
265265
deps = ruff
266266
passenv = RUFF_OUTPUT_FORMAT
267-
commands = ruff {posargs:{toxinidir}/sage/}
267+
commands = ruff check {posargs:{toxinidir}/sage/}
268268
269269
[testenv:ruff-minimal]
270270
description =
271271
check against Sage's minimal style conventions
272272
deps = ruff
273273
# https://github.com/ChartBoost/ruff-action/issues/7#issuecomment-1887780308
274274
passenv = RUFF_OUTPUT_FORMAT
275-
# Output of currently failing, from "./sage -tox -e ruff -- check --statistics":
275+
# Output of currently failing, from "./sage -tox -e ruff -- --statistics":
276276
#
277277
# 3579 PLR2004 [ ] Magic value used in comparison, consider replacing `- 0.5` with a constant variable
278278
# 3498 I001 [*] Import block is un-sorted or un-formatted
@@ -317,7 +317,7 @@ passenv = RUFF_OUTPUT_FORMAT
317317
# 1 F402 [ ] Import `factor` from line 259 shadowed by loop variable
318318
# 1 PLC0208 [*] Use a sequence type instead of a `set` when iterating over values
319319
#
320-
commands = ruff --ignore I001,PLR2004,F401,E741,F821,PLR0912,PLR0913,E402,PLR0915,PLW2901,PLR5501,PLR0911,E731,F405,PLR1714,F403,PLR0402,PLW0603,E713,F841,PLW0602,E714,PLR1711,PLR1701,PLW3301,E721,PLW1510,F811,PLW0120,PLC0414,E743,F541,PLE0101,PLR0124,PLW0127,PLW1508,PLC3002,E742,PLE0302,F402,PLC0208,PLW0129 {posargs:{toxinidir}/sage/}
320+
commands = ruff check --ignore I001,PLR2004,F401,E741,F821,PLR0912,PLR0913,E402,PLR0915,PLW2901,PLR5501,PLR0911,E731,F405,PLR1714,F403,PLR0402,PLW0603,E713,F841,PLW0602,E714,PLR1711,PLR1701,PLW3301,E721,PLW1510,F811,PLW0120,PLC0414,E743,F541,PLE0101,PLR0124,PLW0127,PLW1508,PLC3002,E742,PLE0302,F402,PLC0208,PLW0129 {posargs:{toxinidir}/sage/}
321321

322322
[flake8]
323323
rst-roles =

0 commit comments

Comments
 (0)