Open1
おれの Ruff 設定
自分の Ruff 設定を見直していく用のスクラップです。
とりあえずまずはこんな感じ
[tool.ruff]
src = ["src", "tests"]
exclude = [
".venv",
"dist",
"config",
".git",
".eggs",
"__pypackages__",
".tox",
".mypy_cache",
".pytest_cache",
".hypothesis",
".ruff_cache",
]
line-length = 128
target-version = "py311"
[tool.ruff.lint]
# TODO: lint rule を追加する
select = ["I", "E", "F", "W", "B", "UP"]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"