Skip to content

Commit

Permalink
tox: Allow running ruff on specific paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jodal committed Nov 11, 2024
1 parent e5c0477 commit 30f900d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ commands = [

[tool.tox.env.ruff-lint]
deps = [".[lint]"]
commands = [["ruff", "check", "."]]
commands = [["ruff", "check", "{posargs:.}"]]

[tool.tox.env.ruff-format]
deps = [".[lint]"]
commands = [["ruff", "format", "--check", "."]]
commands = [["ruff", "format", "--check", "{posargs:.}"]]

0 comments on commit 30f900d

Please sign in to comment.