Skip to content

Commit a5a6c00

Browse files
committed
tox: move ruff dependencies from tox.ini to a "ruff" group in pyproject.toml
1 parent 6f62c28 commit a5a6c00

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

poetry.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ mypy = "^1.5.1"
6767
nbmake = "^1.5.4"
6868
ndlib = "^5.1.1"
6969
pydocstyle = "^6.3.0"
70-
ruff = "^0.0.290"
7170
tox = "^4.4.12"
7271
twine = "^4.0.2"
7372
vulture = "^2.9.1"
@@ -84,6 +83,9 @@ mkdocstrings = "^0.22.0"
8483
mknotebooks = "^0.8.0"
8584
pymdown-extensions = "^10.3"
8685

86+
[tool.poetry.group.ruff.dependencies]
87+
ruff = "^0.0.290"
88+
8789
[tool.poetry.group.testenv.dependencies]
8890
hypothesis = {extras = ["numpy"], version = "^6.86.2"}
8991
mistletoe = "^1.2.1"

tox.ini

+4-2
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,15 @@ commands_pre = poetry install --only black
6969
commands = black --check --verbose .
7070

7171
[testenv:ruff]
72+
allowlist_externals = poetry
7273
skip_install = True
73-
deps = ruff==0.0.290
74+
commands_pre = poetry install --only ruff
7475
commands = ruff check --fix --show-fixes .
7576

7677
[testenv:ruff-check]
78+
allowlist_externals = poetry
7779
skip_install = True
78-
deps = ruff==0.0.290
80+
commands_pre = poetry install --only ruff
7981
commands = ruff check .
8082

8183
[testenv:bandit]

0 commit comments

Comments
 (0)