Skip to content

Commit

Permalink
New ruff config
Browse files Browse the repository at this point in the history
  • Loading branch information
notatallshaw committed Sep 22, 2024
1 parent 102d818 commit 9da160f
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,19 @@ select = [
]

[tool.ruff.lint.isort]
# Explicitly make tests "first party" as it's not in the "src" directory
known-first-party = ["tests"]
known-third-party = ["pip._vendor"]
section-order = [
"future",
"standard-library",
"third-party",
"vendored",
"first-party",
"tests",
"local-folder",
]

[tool.ruff.lint.isort.sections]
"vendored" = ["pip._vendor"]
"tests" = ["tests"]

[tool.ruff.lint.mccabe]
max-complexity = 33 # default is 10
Expand Down

0 comments on commit 9da160f

Please sign in to comment.