-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
52 lines (47 loc) · 1.31 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[project]
name = "advent-of-code"
version = "0"
[tool.pyright]
# everything pre-2023 wasn't written with a typechecker, so I'm not going back to look now
ignore = [
"solutions/2017",
"solutions/2018",
"solutions/2019",
"solutions/2020",
"solutions/2021",
]
[tool.ruff.lint]
select = [
"E", # PEP8 recommendations
"F", # bugs
"I001", # import sorting
"BLE", # catching root Exception
"A", # built-in shadowing
"C4", # unnecessary comprehensions
"ISC", # implicit string concat
"PIE", # misc useful lints
"Q", # better quoting behavior
"RSE", # no parens on exceptions that lack args
"RET", # more correct return behavior
"SIM", # general style things
"TC", # type-only imports should be in a typecheck block
"ARG", # unused args
"PTH", # use pathlib
"FLY", # short "".join calls
"PERF", # performance hints
"PL", # pylint, general recommendations
# "RUF", # these are a little picky for me
]
ignore = [
"E501", # skip enforcing line length
"E741", # ignore short variable names
"PLR2004", # magic values
"PLR0911", # too many returns
"PLR0912", # too many branches
"PLR0913", # too many arguments
'Q000', # single quotes; handled by formatter
]
unfixable = [
"F401", # don't remove unused imports
"F841", # don't remove unused variables
]