-
Notifications
You must be signed in to change notification settings - Fork 35
/
pyproject.toml
102 lines (90 loc) · 2.35 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[project]
# PEP 621 project metadata
# See https://www.python.org/dev/peps/pep-0621/
dynamic = ["version"]
#authors = [ {name = "TBD", email = "TBD"}, ]
#license = {text = "TBD"}
requires-python = ">=3.9.0"
dependencies = [
]
name = "ha_programmable_thermostat"
description = "TBD"
readme = "README.md"
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
#"License :: OSI Approved :: TBD",
"Operating System :: Unix",
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Utilities",
"Natural Language :: English",
]
[tool.codespell]
ignore-words-list = """
master,
slave,
hass"""
skip = """
./.*,./assets/*,./data/*,*.svg,*.css,*.json,*.js
"""
quiet-level=2
ignore-regex = '\\[fnrstv]'
builtin = "clear,rare,informal,usage,code,names"
# --------- Pylint -------------
[tool.pylint.'TYPECHECK']
generated-members = "sh"
[tool.pylint.'MESSAGES CONTROL']
extension-pkg-whitelist = "pydantic"
disable = [
"broad-except",
"invalid-name",
"line-too-long",
"missing-function-docstring",
"missing-module-docstring",
"too-few-public-methods",
"too-many-arguments",
"too-many-branches",
"too-many-instance-attributes",
"too-many-statements",
"unused-import",
"wrong-import-order",
]
[tool.pylint.FORMAT]
expected-line-ending-format = "LF"
# --------- Mypy -------------
[tool.mypy]
show_error_codes = true
follow_imports = "silent"
ignore_missing_imports = false
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
warn_unused_configs = true
disallow_subclassing_any = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
disallow_untyped_calls = true
disallow_untyped_defs = true
plugins = [
"pydantic.mypy"
]
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true
[[tool.mypy.overrides]]
module = "tests.*"
# Required to not have error: Untyped decorator makes function on fixtures and
# parametrize decorators
disallow_untyped_decorators = false
[[tool.mypy.overrides]]
#module = [ ]
ignore_missing_imports = true