AutoTeam-F / ruff.toml
cnitlrt's picture
chore: 加入 pre-commit + ruff lint/format
dafca1d
Raw
History Blame Contribute Delete
565 Bytes
target-version = "py310"
line-length = 120
[lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
]
ignore = [
"E501", # line too long (ruff-format handles this)
"E402", # module-level import not at top (display.py must be imported first)
"B008", # function call in default argument
"B904", # raise without from inside except
"B905", # zip without strict (intentional)
]
[lint.isort]
known-first-party = ["autoteam"]