ruff.toml•1.08 kB
# Ruff configuration for MCP Debug Tool
# Python 3.11 project
target-version = "py311"
# Line length
line-length = 100
[lint]
# Enable recommended rules
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
]
# Ignore specific rules if needed
ignore = [
"E501", # Line too long (handled by formatter)
]
# Allow autofix for all enabled rules
fixable = ["ALL"]
unfixable = []
# Exclude patterns
exclude = [
".git",
".venv",
"venv",
"__pycache__",
"build",
"dist",
"*.egg-info",
]
[lint.per-file-ignores]
# Tests can use assertions and ignore some naming conventions
"tests/**/*.py" = ["S101", "N802"]
# Schemas follow API contract with camelCase field names
"src/mcp_debug_tool/schemas.py" = ["N815"]
[format]
# Use double quotes
quote-style = "double"
# Indent with spaces
indent-style = "space"
# Unix line endings
line-ending = "lf"