-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathruff.toml
50 lines (44 loc) · 1.04 KB
/
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
48
49
50
line-length = 120
src = ["lib/foundry-dev-tools/src", "lib/transforms/src"]
exclude = ["docs"]
target-version = "py310"
[lint]
select = ["ALL"]
ignore = [
"PLR0913",
"D104",
"D105",
"D107",
"B028",
"S603",
"S607",
"PLR2004",
"ANN101",
"ANN102",
"ANN204",
"ANN002",
"ANN003",
"FBT",
"TD",
"FIX",
# formatter does not support:
"COM812",
"ISC001",
]
unfixable = [
"ERA", # don't delete commented out code automatically
"T20", # don't delete prints automatically
]
[lint.per-file-ignores]
"tests/*" = ["S101", "S311", "D", "S608", "ANN", "ARG001", "SLF001", "PD901"]
"tests/unit/test_transforms.py" = ["ERA"]
"**/__about__.py" = ["D100"] # ignore docstring in autogenerated about file
"lib/foundry-dev-tools/src/foundry_dev_tools/cli/*" = ["PLW1510"]
[lint.pydocstyle]
convention = "google"
[lint.flake8-tidy-imports]
ban-relative-imports = "all"
[lint.flake8-annotations]
suppress-none-returning = true
[lint.isort]
known-first-party = ["foundry_dev_tools", "transforms"]