Skip to content

Commit

Permalink
pyproject.toml: Move certain tool.ruff settings to tool.ruff.lint
Browse files Browse the repository at this point in the history
tool.ruff.{select,isort,ignore,per-file-ignores} will soon be deprecated in
favour of putting these under tool.ruff.lint. (See reverted PR tox-dev#3214 for
the complaint that appears in a more recent version of ruff.) Change these
now to avoid complaints later.
  • Loading branch information
0cjs committed Feb 6, 2024
1 parent fb83a3a commit bf65bbe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ build.targets.sdist.include = ["/src", "/tests", "/tox.ini"]
version.source = "vcs"

[tool.ruff]
select = ["ALL"]
lint.select = ["ALL"]
line-length = 120
target-version = "py38"
isort = { known-first-party = ["tox", "tests"], required-imports = ["from __future__ import annotations"] }
ignore = [
lint.isort = { known-first-party = ["tox", "tests"], required-imports = ["from __future__ import annotations"] }
lint.ignore = [
"CPY", # No copyright header
"INP001", # no implicit namespaces here
"D", # ignore documentation for now
Expand All @@ -132,7 +132,7 @@ ignore = [
]
format.preview = true
lint.preview = true
[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"S101", # asserts allowed in tests...
"FBT", # don"t care about booleans as positional arguments in tests
Expand Down

0 comments on commit bf65bbe

Please sign in to comment.