Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,28 @@ members = [
# All example apps with "-py" suffix
"example-apps/*-py"
]

[tool.ruff]
target-version = "py310"
line-length = 88

Comment thread
Geff115 marked this conversation as resolved.
exclude = ["third_party/", "docs/", ".venv/"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"B", # flake8-bugbear (mutable defaults, bare excepts, etc.)
"UP", # pyupgrade — modernise syntax
"SIM", # flake8-simplify
]
# ruff obeys .gitignore by default
ignore = []
Comment thread
Geff115 marked this conversation as resolved.

[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["F401"] # Allow re-exports in __init__.py

[project.optional-dependencies]
dev = [
"ruff>=0.4.0",
]
Loading