-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
42 lines (37 loc) · 1.68 KB
/
ruff.toml
File metadata and controls
42 lines (37 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# AdminAgent — Ruff configuration
# Enforces Google Python Style Guide conventions.
# `ruff check .` and `ruff format .` must pass with zero issues.
target-version = "py312"
line-length = 100 # Deviation from Google's 80 — our MCP tools have long docstrings
[lint]
select = [
"F", # Pyflakes (unused imports, undefined names)
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort (import sorting)
"N", # pep8-naming
"UP", # pyupgrade (modernize syntax)
"B", # flake8-bugbear (common pitfalls)
"SIM", # flake8-simplify
"RUF", # Ruff-specific rules
"D", # pydocstyle (docstring conventions)
]
ignore = [
"E501", # Line too long — handled by formatter
"B008", # Function call in argument defaults — FastMCP uses this
"D100", # Missing docstring in public module — we have module-level docstrings where needed
"D104", # Missing docstring in public package — __init__.py doesn't need one
"D203", # One blank line before class docstring — conflicts with D211
"D213", # Multi-line docstring summary on second line — conflicts with D212
"D401", # First line should be imperative — our tool docstrings are descriptive
"D415", # First line should end with period — some tool docstrings end with bracket tags
"D417", # Undocumented param — tool Args: blocks are documented but not in ruff-parseable format
]
[lint.isort]
known-first-party = ["auth", "client", "bulk", "safety", "server", "analytics_engine", "queries", "tools"]
force-sort-within-sections = true
[lint.pydocstyle]
convention = "google"
[format]
quote-style = "double"
indent-style = "space"