-
Notifications
You must be signed in to change notification settings - Fork 153
/
.ruff.toml
47 lines (40 loc) · 935 Bytes
/
.ruff.toml
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
extend-include = ["*.ipynb"]
line-length = 100
src = [
"llm_guard",
"tests",
]
exclude = ["examples/google_gemini.py"]
[lint]
ignore = [
'RUF001' # String contains ambiguous `,`
]
select = [
'A', # flake8-builtins
'ASYNC', # flake8-async
'ERA', # eradicate
'F', # Pyflakes
'I', # Isort
'NPY', # NumPy Rules
'PERF', # performance
'PYI', # flake8-pyi
]
[lint.flake8-builtins]
builtins-ignorelist = ["input"]
[lint.isort]
combine-as-imports = true
known-first-party = [
"llm_guard",
"tests",
]
split-on-trailing-comma = false
[lint.pep8-naming]
ignore-names = []
[lint.per-file-ignores]
"__init__.py" = [
"F401", # Import imported into __init__ by unused; consider adding to `__all__` or using a redundant alias
"F403", # Unable to detect undefined names
"F405", # May be undefined, or defined from star imports
]
[lint.pydocstyle]
convention = "google"