Skip to content

Commit

Permalink
ENH: adapt Ruff configuration to v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Feb 2, 2024
1 parent 1c523c4 commit 12bb963
Show file tree
Hide file tree
Showing 2 changed files with 216 additions and 167 deletions.
24 changes: 12 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,15 @@ testpaths = [

[tool.ruff]
extend-exclude = ["typings"]
preview = true
show-fixes = true
src = [
"src",
"tests",
]
target-version = "py37"

[tool.ruff.lint]
extend-select = [
"A",
"B",
Expand Down Expand Up @@ -286,22 +295,13 @@ ignore = [
"SIM108",
"UP036",
]
preview = true
show-fixes = true
src = [
"src",
"tests",
]
target-version = "py37"
task-tags = ["cspell"]

[tool.ruff.isort]
known-first-party = ["compwa_policy"]

[tool.ruff.lint.isort]
known-first-party = ["compwa_policy"]
split-on-trailing-comma = false

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"docs/*" = [
"E402",
"INP001",
Expand All @@ -322,7 +322,7 @@ split-on-trailing-comma = false
"T20",
]

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

[tool.tomlsort]
Expand Down
Loading

0 comments on commit 12bb963

Please sign in to comment.