-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
pyproject.toml
78 lines (74 loc) · 1.79 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
[tool.isort]
src_paths = ["."]
profile = "black"
[tool.mypy]
scripts_are_modules = true
strict = true
enable_error_code = [
"redundant-self",
"redundant-expr",
"possibly-undefined",
"truthy-bool",
"truthy-iterable",
"ignore-without-code",
"unused-awaitable",
"explicit-override",
]
warn_unreachable = true
[[tool.mypy.overrides]]
module = [
"setuptools.*",
]
ignore_missing_imports = true
[tool.ruff]
src = ["."]
target-version = "py38"
[tool.ruff.lint]
# See https://github.com/charliermarsh/ruff#rules for error code definitions.
select = [
"ANN", # annotations
"B", # bugbear
"BLE", # blind except
"C4", # comprehensions
"COM", # trailing comma
"DTZ", # naive datetime
"E", # style errors
"EXE", # shebang
"F", # flakes
"FLY", # string formatting
"G", # logging format
"I", # import sorting
"ICN", # import conventions
"INT", # gettext
"ISC", # string concatenation
"N", # naming
"PERF", # performance
"PGH", # pygrep-hooks
"PIE", # miscellaneous
"PL", # pylint
"PYI", # typing stubs
"Q", # quotes
"RET", # return
"RSE", # raise
"RUF", # Ruff
"S", # security
"SLF", # self
"SLOT", # slots
"SIM", # simplify
"T10", # debugger
"TID", # tidy imports
"TRY", # try
"UP", # upgrade
"W", # style warnings
"YTT", # sys.version
]
extend-ignore = [
"ANN101", # Missing type annotation for `self` in method
"COM812", # Trailing comma missing
"E501", # Line too long
"PLR0911", # Too many return statements
"PLR0913", # Too many arguments in function definition
"S101", # Use of `assert` detected
"S603", # `subprocess` call: check for execution of untrusted input
"S607", # Starting a process with a partial executable path
]