-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (84 loc) · 1.35 KB
/
pyproject.toml
File metadata and controls
90 lines (84 loc) · 1.35 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
88
89
90
[tool.mypy]
python_version = "3.12"
strict = true
ignore_missing_imports = true
disallow_untyped_defs = true
warn_unused_ignores = true
[tool.ruff]
# which files/dirs to skip
exclude = [
"external/",
"third_party/",
"vendor/",
]
line-length = 120
target-version = "py312"
preview = true
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true
[tool.ruff.lint]
select = [
"A",
"ASYNC",
"ARG",
"B",
"COM",
"C4",
"DJ",
"DOC",
"D",
"E4", "E7", "E9",
"EM",
"F",
"FA",
"FAST",
"FBT",
"FLY",
"G",
"I",
"ISC",
"ICN",
"LOG",
"INP",
"N",
"PERF",
"PD",
"PLC", "PLE",
"PT",
"PTH",
"Q",
"RSE",
"SIM",
"SLOT",
"YTT",
]
ignore = [
"ARG002",
"B007",
"C408",
"COM812",
"D100",
"D102",
"D103",
"D105",
"D107",
"D202",
"D203",
"D205",
"D213",
"D417",
"D413",
"D418",
"E303",
"FA102",
"F401",
"INP001",
]
[tool.ruff.lint.isort]
lines-after-imports = 3
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["D", "S101"] # ignore docstring and security warnings in tests
"__init__.py" = ["F401"] # allow unused imports in package inits
"scripts/*.py" = ["INP001", "ARG"] # ignore input file & argument naming