-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
71 lines (66 loc) · 1.94 KB
/
Copy pathruff.toml
File metadata and controls
71 lines (66 loc) · 1.94 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
line-length = 120
output-format = "grouped"
exclude = [
"bot/main.py", # order-sensitive
"bot/cmdClient/__init__.py", # order-sensitive
"bot/modules/Tex/__init__.py", # order-sensitive
"bot/modules/Tex/core/__init__.py", # order-sensitive
"bot/settings/__init__.py", # order-sensitive
# low-priority
"bot/modules/Guild_Moderation/**",
"bot/modules/Guild_Utils/**",
"bot/modules/Guild_Admin/**",
"bot/modules/Guild_Logging/**",
"bot/registry/**/*",
"bot/utils/old/**",
"data/migration/**",
"data/scripts/**",
]
[format]
skip-magic-trailing-comma = false
[lint]
future-annotations = true
# https://docs.astral.sh/ruff/rules/
extend-select = [
"A", # var names masking builtins
"ASYNC", # async practices
"B", # flake8-bugbear
"C4", # comprehensions, dict, list, etc
# "C90", # mccabe complexity
"COM", # flake8-commas
"DTZ", # datetime practices
"E", # pycodestyle (Error)
"FA", # future annotations
"FLY", # flynt
"FURB", # idiomatic patterns
"I", # isort
"ICN", # import conventions
"INT", # flake8-gettext
"ISC", # string concatenation
"PERF", # perflint
"PIE", # flake8-pie
"PLC", # pylint-convention
"PLE", # pylint-error
"PTH", # flake8-use-pathlib
"RET", # return practices
"RSE", # flake8-raise
"RUF", # Ruff-specific rules
"S", # bandit
"SIM", # flake8-simplify
"SLF", # flake8-self
"T20", # flake8-print
"TC", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"YTT", # sys version
]
ignore = [
"F",
"S311",
"E501",
"SLF001", # private
"RUF001",
"TC003", # put in TYPE_CHECKING block
"TC004", # take it out of the TYPE_CHECKING block
"COM812", # trailing comma in function call
]