-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.ruff.toml
More file actions
29 lines (22 loc) · 819 Bytes
/
.ruff.toml
File metadata and controls
29 lines (22 loc) · 819 Bytes
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
# ref: https://beta.ruff.rs/docs/rules/
select = ["B", "C4", "E", "F", "N", "I", "W", "UP", "D"]
ignore = ["F403","F405","N812", "D100", "D101", "D102", "D103", "D104", "D105", "D107", "B905"]
extend-select = ["D400", "D401"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Line length.
line-length = 120
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
target-version = "py310"
# Avoid automatically removing unused imports in __init__.py.
ignore-init-module-imports = true
[per-file-ignores]
"__init__.py" = ["F401"]
"src/ditto/patches/trtllm.py" = ["ALL"]
"src/ditto/patches/transformers.py" = ["ALL"]
"scripts/utils.py" = ["ALL"]
"scripts/run.py" = ["ALL"]
[pydocstyle]
convention = "google"