.ruff.toml•872 B
# Ruff configuration
target-version = "py310"
line-length = 120
[lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"N", # pep8-naming
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"B904", # raise without from inside except
"SIM105", # contextlib.suppress
]
[lint.per-file-ignores]
"tests/*" = ["S101", "PLR2004", "B018"]
"__init__.py" = ["F401", "F403"]
[lint.isort]
known-first-party = ["mcp_gitlab"]
[format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"