-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ruff.toml
47 lines (45 loc) · 1.31 KB
/
.ruff.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
line-length = 100
target-version = "py311"
[lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"N", # pep-8 naming
#"D", # pydocstyle
"F", # pyflakes
"UP", # pyupgrade
"ASYNC", # asyncio
"FBT", # flake8-boolean-trap
#"COM", # flake8-commas
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"INP", # flake8-no-pep420
"PIE", # flake8-pie
"T20", # flake8-print
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
"RET", # flake8-return
"SIM", # flake8-simplify
"PTH", # flake8-use-pathlib
"B", # flake8-bugbear
#"FURB", # refurb (preview)
"RUF", # ruff
#"LOG", # flake8-logging (preview)
"PERF", # perflint
"FLY", # flynt
"TRY", # tryceratops
"PL", # Pylint
]
ignore = [
"TRY003", # long exception messages are fine
"PLR0913", # function parameter limits
"E501", # line too long - formatting check will ensure we do the best we can - lines may still be too long
"PLC0414", # `from x import y as y` can be used in __init__.py
"PT023", # ok to use pytest marks without trailing parens
"E731", # if assigning lambdas is wrong I don't want to be right
]
[lint.per-file-ignores]
"../*/tests/**" = [
# allow magic value comparisons in tests
"PLR2004",
]