-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
47 lines (42 loc) · 1.24 KB
/
ruff.toml
File metadata and controls
47 lines (42 loc) · 1.24 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
43
44
45
46
47
target-version = "py310"
line-length = 120
[lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"RET", # flake8-return
"C4", # flake8-comprehensions
"TCH", # flake8-type-checking
"RUF", # ruff-specific rules
"D", # pydocstyle
"S", # flake8-bandit (security)
]
ignore = [
"D100", # missing docstring in public module
"D101", # missing docstring in public class
"D102", # missing docstring in public method
"D103", # missing docstring in public function
"D104", # missing docstring in public package
"D105", # missing docstring in magic method
"D107", # missing docstring in __init__
"D203", # conflicts with D211
"D213", # conflicts with D212
]
[lint.per-file-ignores]
"tests/**" = ["D", "S101", "S105", "S106", "RUF012", "B008", "E501"]
"agentscore_commerce/**" = ["S105", "S106"]
"examples/**" = ["D", "S105", "S106", "B008", "E501", "RUF013"]
"vulture_whitelist.py" = ["B018"]
[lint.pydocstyle]
convention = "google"
[lint.isort]
known-first-party = ["agentscore_commerce"]
[format]
quote-style = "double"
indent-style = "space"