forked from hydrogram/hydrogram
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
45 lines (42 loc) · 904 Bytes
/
ruff.toml
File metadata and controls
45 lines (42 loc) · 904 Bytes
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
line-length = 99
[lint]
select = [
"FURB", # refurb
"I", # isort
"E", # pycodestyle: error
"W", # pycodestyle: warning
"UP", # pyupgrade
"F", # pyflakes
"SIM", # flake8-simplify
"RET", # flake8-return
"C4", # flake8-comprehensions
"PTH", # flake8-use-pathlib
"PERF", # perflint
"N", # pep8-naming
"RUF", # ruff
"G", # flake8-logging-format
"TID", # flake8-tidy-imports
"TC", # flake8-type-checking
"FA", # flake8-future-annotations
"PL", # pylint
]
ignore = [
"RUF001",
"RUF002",
"RUF003",
"E203",
"PERF203",
"PLR09",
"PLR2004",
"PLR1702",
"PLW1514",
"PLW2901",
"PLW0603",
"FURB189", # This rule is unsafe and not relevant for us.
]
preview = true
[lint.isort]
known-first-party = ["hydrogram"]
[format]
docstring-code-format = true
preview = true