forked from apdn7/AnalysisPlatform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
88 lines (77 loc) · 1.75 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[tool.black]
line-length = 100
skip-string-normalization = 1
[tool.ruff]
target-version = "py37" # rainbow-version
line-length = 100
exclude = [".venv", "ap/script"]
fixable = ["ALL"]
select = [
# "C4", # comprehensions
# "COM", # trailing comma
# "E", # style errors
# "EXE", # shebang
# "F", # flakes
# "G", # logging format
"I", # import sorting
# "INT", # gettext
# "ISC", # string concatenation
# "PIE", # miscellaneous
# "PL", # pylint
"Q", # quotes
# "RSE", # raise
# "SIM", # simplify
# "T10", # debugger
# "W", # style warnings
# "YTT", # sys.version
"N801",
"N802",
"N804",
"N805",
"N812",
"N814",
"N999",
]
ignore = [
"C416",
"E402",
"E501",
"E711", # Comparison with None
"F405",
"F403",
"F821",
"E722",
"F811", # Redefinition of unused
"G001",
"G002",
"G004",
"SIM102",
"SIM105",
"SIM108",
"SIM112",
"SIM114",
"SIM115",
"SIM118",
"PIE804", # Unnecessary `dict` kwargs
"PLC0208", # Use a sequence type instead of a `set` when iterating over values
"PLR0124", # Name compared with itself
"PLR0911",
"PLR0912",
"PLR0913",
"PLR0915",
"PLR2004",
"PLR5501",
"PLW0120", # `else` clause on loop without a `break` statement
"PLW0602",
"PLW0603",
"PLW2901",
]
[tool.ruff.extend-per-file-ignores]
"tests/units/*py" = ["E501", "F405", "F403", "PLR0133", "PLR0912", "PLR0915", "PLW"]
"migrations/*" = ["G", "PLR0912"]
"manage.py" = ["F403", "F405"]
"wrapr_utils.py" = ["E501"]
[tool.ruff.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
multiline-quotes = "single"