forked from xchwarze/samsung-tv-ws-api
-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpyproject.toml
77 lines (71 loc) · 1.33 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
[tool.isort]
# https://github.com/PyCQA/isort/wiki/isort-Settings
profile = "black"
force_sort_within_sections = true
known_first_party = [
"samsungtvws",
"tests",
]
forced_separate = [
"tests",
]
combine_as_imports = true
[tool.ruff]
ignore = [
"E501",
"F401",
"F403",
]
line-length = 79
select = [
"B",
"B9",
"C",
"E",
"F",
"W",
]
[tool.ruff.mccabe]
max-complexity = 18
[tool.mypy]
python_version = "3.6"
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 = '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