-
Notifications
You must be signed in to change notification settings - Fork 99
/
pyproject.toml
41 lines (33 loc) · 986 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
37
38
39
40
41
[project]
name = "pajbot"
requires-python = ">=3.9"
[tool.black]
line-length = 120
[tool.ruff]
line-length = 120
# select = [ "ALL" ]
select = [ "E", "F" ]
ignore = [
"FIX", # Ignore flake8-fixme rules
"D", # Ignore doc style stuff
"ERA", # Ignore eradicate rules
# "ANN", # Ignore annotation/typing rules, rely on mypy for now
"ANN101", # missing-type-self
"ANN401", # disable any
"ARG002", # unused method arg
"RUF012", # class has mutable member
"C901", # too complex
"SIM108", # use-ternary
"PLR0915", # too many statements
"PLR0913", # too many arguments to function call
"PLR2004", # magic value used in comparison
"E722", # bare except
"E501", # line too long
]
ignore-init-module-imports = true
[tool.ruff.isort.sections]
"typing" = ["typing"]
[tool.ruff.isort]
section-order = ["future", "typing", "standard-library", "first-party", "third-party", "local-folder"]
[tool.ruff.pyupgrade]
keep-runtime-typing = true