Skip to content

Commit 7a9c087

Browse files
committed
Add rufflintfix and ruffformat
1 parent 1ed759b commit 7a9c087

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tox.ini

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,25 @@ addopts=
2525
testpaths=docs src/sortedcontainers tests
2626

2727
[testenv:rufflint]
28-
commands=ruff {toxinidir}/src
28+
commands=ruff check {toxinidir}/src
2929
deps=ruff
30+
skip_install=True
31+
32+
[testenv:rufflintfix]
33+
commands=ruff check --fix {toxinidir}/src
34+
deps=ruff
35+
skip_install=True
3036

3137
[testenv:ruffformatcheck]
3238
commands=ruff format --check {toxinidir}
3339
deps=ruff
3440
skip_install=True
3541

42+
[testenv:ruffformat]
43+
commands=ruff format {toxinidir}
44+
deps=ruff
45+
skip_install=True
46+
3647
[testenv:doc8]
3748
commands=doc8 docs --ignore-path docs/_build
3849
deps=doc8

0 commit comments

Comments
 (0)