-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
36 lines (34 loc) · 940 Bytes
/
pyproject.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
[tool.isort]
known_first_party = ["trainer_seq2seq", "t5_unlikelihood", "metric"]
profile = "black"
[tool.ruff.lint]
select = [
"E",
"F",
"I",
"ISC",
"N",
"PL",
"RUF",
"SIM",
"TRY",
"UP",
"W",
"ERA"
]
ignore = [
"PLR0911", # Too many return statements
"PLR0912", # Too many branches
"PLR0913", # Too many arguments
"PLR0915", # Too many statements
"PLR2004", # Magic value used in comparison
"E501", # Line too long (let Black take care of this)
"TRY003", # Long messages outside exception class
"SIM108", # Use ternary operation instead of if-else block
"UP007", # HFArgumentParser and Typer don't like T | None
"ISC001" # Incompatible with the formatter
]
[tool.pyright]
# Ruff also handles this, and it needs to be enabled there for fixAll to fix it,
# so we disable it here to avoid duplicate errors
reportUnusedImport = false