-
Notifications
You must be signed in to change notification settings - Fork 23
/
pyproject.toml
62 lines (53 loc) · 1 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
[tool.ruff]
line-length = 120
output-format = "grouped"
target-version = "py37"
extend-exclude = ["src/pyright/_mureq.py"]
[tool.ruff.lint]
select = [
# isort
"I",
# bugbear rules
"B",
# remove unused imports
"F401",
# bare except statements
"E722",
# unused arguments
"ARG",
# typing.TYPE_CHECKING misuse
"TCH004",
"TCH005",
# import rules
"TID251",
]
ignore = [
# mutable defaults
"B006",
# function calls in defaults
"B008",
]
[tool.ruff.lint.isort]
length-sort = true
length-sort-straight = true
combine-as-imports = true
extra-standard-library = ["typing_extensions"]
[tool.ruff.format]
quote-style = "single"
docstring-code-format = true
[tool.pyright]
include = [
"src",
"tests",
]
exclude = [
"src/pyright/_mureq.py"
]
pythonVersion = "3.9"
typeCheckingMode = "strict"
reportImportCycles = false
reportPrivateUsage = false
# enable these for now as none of raise any
# errors anyway
reportCallInDefaultInitializer = true
reportImplicitStringConcatenation = true