Skip to content

Commit abd247f

Browse files
committed
tox: Add "fix" target for tox
This does "ruff check --fix" and "ruff format" Signed-off-by: Jussi Kukkonen <[email protected]>
1 parent 9ddbe86 commit abd247f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tox.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ commands =
7171

7272
mypy {[testenv:lint]lint_dirs}
7373

74+
[testenv:fix]
75+
deps = {[testenv:lint]deps}
76+
commands =
77+
ruff check --fix {[testenv:lint]lint_dirs}
78+
ruff format {[testenv:lint]lint_dirs}
79+
7480
# Requires docker running
7581
[testenv:local-aws-kms]
7682
deps =

0 commit comments

Comments
 (0)