Skip to content

Commit

Permalink
tox: move ruff dependencies from tox.ini to a "ruff" group in pyproje…
Browse files Browse the repository at this point in the history
…ct.toml
  • Loading branch information
muxator committed Sep 16, 2024
1 parent 1bcc9a4 commit e703f3a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ mypy = "^1.5.1"
nbmake = "^1.5.4"
ndlib = "^5.1.1"
pydocstyle = "^6.3.0"
ruff = "^0.0.290"
tox = "^4.4.12"
twine = "^4.0.2"
vulture = "^2.9.1"
Expand All @@ -84,6 +83,9 @@ mkdocstrings = "^0.22.0"
mknotebooks = "^0.8.0"
pymdown-extensions = "^10.3"

[tool.poetry.group.ruff.dependencies]
ruff = "^0.0.290"

[tool.poetry.group.testenv.dependencies]
hypothesis = {extras = ["numpy"], version = "^6.86.2"}
mistletoe = "^1.2.1"
Expand Down
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,15 @@ commands_pre = poetry install --only black
commands = black --check --verbose .

[testenv:ruff]
allowlist_externals = poetry
skip_install = True
deps = ruff==0.0.290
commands_pre = poetry install --only ruff
commands = ruff check --fix --show-fixes .

[testenv:ruff-check]
allowlist_externals = poetry
skip_install = True
deps = ruff==0.0.290
commands_pre = poetry install --only ruff
commands = ruff check .

[testenv:bandit]
Expand Down

0 comments on commit e703f3a

Please sign in to comment.