Skip to content

Commit

Permalink
add ruff config
Browse files Browse the repository at this point in the history
  • Loading branch information
ccataalin authored Aug 1, 2024
1 parent 2a45d7a commit 8961c67
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,31 @@ module = [
"webassets.*",
"zope.*",
]

[tool.ruff]
extend-exclude = [
"./src",
]

# Allow lines to be as long as 120 characters.
line-length = 120

[tool.ruff.lint]
select = [
"E",
"F",
"Q",
"INP001", # Checks for packages that are missing an __init__.py file.
]
extend-ignore = [
"Q003", # avoidable-escaped-quote
"E712", # true-false-comparison (interferes with sqlAlchemy queries)
]

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

[tool.ruff.format]
# Prefer single quotes over double quotes
quote-style = "single"

0 comments on commit 8961c67

Please sign in to comment.