Skip to content

Commit

Permalink
Fixed pyproject.toml for ruff 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 committed Feb 10, 2024
1 parent 707056d commit f869e35
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ target-version = ["py39", "py310", "py311"]
[tool.ruff]
line-length = 95
target-version = "py39"
exclude = ["examples", "scripts"]

[tool.ruff.lint]
select = [
"D",
"E",
Expand All @@ -145,7 +148,6 @@ select = [
"W",
"UP",
]
exclude = ["examples", "scripts"]
ignore = [
"D1", # TODO: this should be applied on `vpype`

Expand All @@ -157,13 +159,14 @@ ignore = [
"D415",
]

[tool.ruff.isort]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "F402", "F403"]
"docs/conf.py" = ["D100", "D103"]
"tests/*.py" = ["D209"]

[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "google"

[tool.ruff.per-file-ignores]
"__init__.py" = ["F401", "F402", "F403"]
"docs/conf.py" = ["D100", "D103"]
"tests/*.py" = ["D209"]

0 comments on commit f869e35

Please sign in to comment.