-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathpyproject.toml
More file actions
91 lines (85 loc) · 1.8 KB
/
pyproject.toml
File metadata and controls
91 lines (85 loc) · 1.8 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
91
[project]
name = "Red-Index"
version = "1.0.0"
requires-python = ">=3.14"
dependencies = [
"pyyaml",
]
[tool.ruff]
line-length = 99
[tool.ruff.format]
line-ending = "lf"
[tool.ruff.lint]
select = [
# pyflakes rules
"F",
# pycodestyle rules
"E",
"W",
# import sorting
"I",
# pyupgrade rules
"UP",
# flake8-bugbear rules
"B",
# flake8-bandit rules
"S",
# builtin shadowing rules
"A",
# unused arguments
"ARG",
# refurb rules
"FURB",
"FURB148", # unnecessary-enumerate (in preview)
# require type annotations
"ANN",
# flake8-simplify rules
"SIM",
# flake8-logging rules
"LOG",
# flake8-logging-format rules
"G",
# flake8-comprehensions rules
"C4",
# "boolean trap" rules
"FBT",
# disallow implicitly concatenated strings on a single line
# and explicitly concatenated strings
"ISC",
# perflint rules
"PERF",
# pygrep-hooks rules
"PGH",
# flake8-pie rules
"PIE",
# collection of rules unique to Ruff
"RUF",
# leftover `breakpoint()`
"T100",
# flake8-tidy-imports rules
"TID",
]
ignore = [
# allow use of `Any`
"ANN401",
# setattr is needed to make type checkers happy when creating new attributes on objects
"B010",
# disable __all__ sorting
# see https://github.com/astral-sh/ruff/issues/20952
"RUF022",
# `assert` is expected to be used in code (to appease type checkers)
"S101",
# `contextlib.suppress()` is slower than `try-except-pass`
"SIM105",
]
preview = true
explicit-preview-rules = true
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.ruff.lint.flake8-boolean-trap]
extend-allowed-calls = ["logging.captureWarnings"]
[dependency-groups]
dev = [
"ruff>=0.15.12",
"ty>=0.0.32",
]