# Ruff configuration file # This extends the pyproject.toml configuration for IDE integration line-length = 88 target-version = "py39" [lint] select = [ "E", # pycodestyle errors "W", # pycodestyle warnings "F", # pyflakes "I", # isort "B", # flake8-bugbear "C4", # flake8-comprehensions "UP", # pyupgrade "ARG", # flake8-unused-arguments "SIM", # flake8-simplify "TID", # flake8-tidy-imports "ICN", # flake8-import-conventions "PL", # pylint "RUF", # Ruff-specific rules ] ignore = [ "E501", # line too long (handled by black) "PLR0913", # too many arguments "PLR0912", # too many branches "PLR2004", # magic value used in comparison ] [lint.per-file-ignores] "__init__.py" = ["F401"] # imported but unused "tests/*" = ["ARG", "S101", "PLR2004"] # test-specific ignores [lint.isort] known-first-party = ["mcp_namecheap"]