-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
87 lines (80 loc) · 1.31 KB
/
ruff.toml
File metadata and controls
87 lines (80 loc) · 1.31 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
extend = "pyproject.toml"
line-length = 140
[lint]
allowed-confusables = ["σ", "×", "−", "ℝ"]
ignore = [
"ANN401",
"C901",
"COM812",
"D204",
"D206",
"D400",
"D401",
"E501",
"F401",
"FIX",
"FLY002",
"I",
"N",
"PGH004",
"PLC0105",
"PLC0206",
"PLC0414",
"PLC2401",
"PLC2403",
"PLR0912",
"PLR0913",
"PLR0915",
"PLR2004",
"PLW0120",
"PLW2901",
"PYI011",
"PYI021",
"PYI041",
"PYI042",
"Q000",
"RET505",
"RET507",
"RUF010",
"S603",
"SIM108",
"SIM300",
"TC001",
"TC002",
"TC003",
"TC006",
"TD",
"W191",
"W292",
]
select = ["ALL"]
task-tags = ["DEVELOPMENT", "NOTE", "SEMIOTICS", "TODO"]
[lint.flake8-import-conventions]
banned-aliases = { numpy = ["np"], pandas = ["pd"], regex=["re"] }
[lint.flake8-import-conventions.aliases]
"accelerate.utils.dataclasses" = "accelerate_dataclasses"
"torch.autograd.grad" = "torch_grad"
"torch.nn.functional" = "F"
"torch.nn.parallel.DistributedDataParallel" = "DDP"
numpy = "numpy"
pandas = "pandas"
regex = "regex"
[lint.per-file-ignores]
"__init__.py" = ["PLC0414"]
"*test*.py" = [
"ARG",
"BLE",
"D",
"FBT",
"PT",
"S101",
"TRY",
"DTZ",
]
[lint.pydocstyle]
convention = "numpy"
[format]
docstring-code-format = true
quote-style = "single"
indent-style = "tab"
skip-magic-trailing-comma = true