-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
58 lines (52 loc) · 1.5 KB
/
Copy pathpyproject.toml
File metadata and controls
58 lines (52 loc) · 1.5 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
[project]
name = "ldr-benchmarks"
version = "0.0.0"
description = "Community benchmark scripts for Local Deep Research"
requires-python = ">=3.11"
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"SIM", # flake8-simplify
"S", # flake8-bandit (security)
"C4", # flake8-comprehensions
"RUF", # ruff-specific
"PTH", # use pathlib
"PL", # pylint
"TRY", # tryceratops
]
ignore = [
"PLR0913", # too many arguments
"PLR2004", # magic value comparison
"TRY003", # long exception messages
"S603", # subprocess-without-shell-equals-true (we use list args)
"S607", # start-process-with-partial-path (git is on PATH)
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "PLR2004"] # asserts and magic values OK in tests
"scripts/validate_yamls.py" = ["PLR0912", "PLR0915"] # validator naturally branchy
[tool.mypy]
python_version = "3.11"
files = ["scripts"]
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
no_implicit_optional = true
check_untyped_defs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
warn_return_any = true
[[tool.mypy.overrides]]
module = "yaml"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "huggingface_hub"
ignore_missing_imports = true