Skip to content

Commit

Permalink
Update pyproject.toml with new ruff config (#21864)
Browse files Browse the repository at this point in the history
  • Loading branch information
eviljeff committed Feb 15, 2024
1 parent eb06c8a commit 36753b3
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ exclude = [
".git",
"*/migrations/*.py",
]
line-length = 88

[tool.ruff.lint]
ignore = [
"B904", # Within an `except` clause, raise exceptions with `raise ... from err|None`
]
line-length = 88
select = [
"B", # flake8-bugbear
"E", # pycodestyle errors
Expand All @@ -18,20 +20,20 @@ select = [
"W", # pycodestyle warnings
]

[tool.ruff.flake8-quotes]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"

[tool.ruff.format]
quote-style = "single"
line-ending = "lf"

[tool.ruff.isort]
[tool.ruff.lint.isort]
combine-as-imports = true
lines-after-imports = 2
section-order = ["future", "standard-library", "django", "third-party", "first-party", "local-folder"]
[tool.ruff.isort.sections]
[tool.ruff.lint.isort.sections]
"django" = ["django"]

[tool.ruff.format]
quote-style = "single"
line-ending = "lf"

[tool.pytest.ini_options]
addopts = "-vs --reuse-db --showlocals --tb=short"
python_files = "test*.py"
Expand Down

0 comments on commit 36753b3

Please sign in to comment.