-
Notifications
You must be signed in to change notification settings - Fork 45
/
pyproject.toml
81 lines (74 loc) · 1.36 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
[tool.ruff]
line-length = 88
target-version = "py38"
[tool.ruff.lint]
ignore = [
"E501",
]
select = [
"B",
"B9",
"C",
"E",
"F",
"I", # isort
"UP", # pyupgrade
"W",
]
[tool.ruff.lint.isort]
force-sort-within-sections = true
known-first-party = [
"samsungtvws",
"tests",
]
forced-separate = [
"tests",
]
combine-as-imports = true
[tool.ruff.lint.mccabe]
max-complexity = 18
[tool.mypy]
python_version = "3.8"
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
no_implicit_optional = true
no_implicit_reexport = true
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
exclude = [
'^docs',
'^example',
'^setup',
'^tests'
]
[[tool.mypy.overrides]]
module = [
'py3rijndael.*',
'websocket.*',
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
'samsungtvws.art',
'samsungtvws.shortcuts',
]
disallow_untyped_calls = false
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = [
'samsungtvws.remote',
]
disallow_untyped_calls = false