-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
73 lines (67 loc) · 2.06 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
[tool.ruff]
line-length = 110
[tool.ruff.format]
docstring-code-format = true
quote-style = 'single'
[tool.ruff.lint]
select = [
# pycodestyle
'E',
# Pyflakes
'F',
# pyupgrade
'UP',
# flake8-bugbear
'B',
# flake8-simplify
'SIM',
# isort
'I',
# make sure noqa is suppressing what it is saying it's suppressing
'RUF100',
#-----------------------------------------------------------------------------------------------------------
# not recommended when using ruff formatter
# even though I would use these otherwise
#-----------------------------------------------------------------------------------------------------------
# point out when a string has avoidable escaped quotes inside of it, rather than just using the other type of quote
# 'Q003',
# ensure there are trailing commas, to make diffs nicer
# 'COM812',
# when concatenating multiple strings on multiple lines, () then and then use implicit string concatenation, instead of backslashes
# 'ISC002',
]
ignore = [
# tab indentation
'W191',
# indentation with a non-multiple of 4 spaces
'E111',
# apparently the same thing
'E114',
# docstrings that are indented with tabs
'D206',
# triple single quotes, rather than double quotes
'D300',
# single quoted string
'Q000',
# singe quoted multiline string
'Q001',
# inconsistent quotes used for a docstring
'Q002',
# trailing commas where they aren't needed
'COM819',
# implicit string concatenation
'ISC001',
]
[tool.basedpyright]
# ['a', 3, True] will be interpreted as list[str | int | bool] rather than list[Any]
strictListInference = true
# { 'a': 1, 'b': 'c' } will be interpretes as dict[str, int | str] rather than dict[str, Any]
strictDictionaryInference = true
# { 'a', 1, True } will be set[str, int, bool] rather than set[Any]
strictSetInference = true
typeCheckingMode = 'strict'
reportUnusedVariable = false
reportUnusedImport = false
reportUnknownMemberType = false
reportUnknownVariableType = false
reportUnknownArgumentType = false