-
Notifications
You must be signed in to change notification settings - Fork 46
/
pyproject.toml
170 lines (149 loc) · 4.31 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
[build-system]
requires = ["setuptools >= 35.0.2", "wheel >= 0.29.0", "poetry>=0.12"]
build-backend = "poetry.core.masonry.api"
[tool.black]
target-version = ["py39"]
[tool.coverage.report]
exclude_lines = ["TYPE_CHECKING", "ImportError", "NotImplementedError", "handle_exit_signal"]
fail_under = 100
show_missing = true
[tool.coverage.run]
omit = ["ecowitt2mqtt/backports/*"]
source = ["ecowitt2mqtt"]
[tool.isort]
known_first_party = "ecowitt2mqtt,examples,tests"
multi_line_output = 3
profile = "black"
[tool.mypy]
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
follow_imports = "silent"
ignore_missing_imports = true
no_implicit_optional = true
platform = "linux"
plugins = ["pydantic.mypy"]
python_version = "3.12"
show_error_codes = true
strict_equality = true
warn_incomplete_stub = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.poetry]
name = "ecowitt2mqtt"
version = "2024.10.0"
description = "A small web server to send data from Ecowitt devices to an MQTT Broker"
readme = "README.md"
authors = ["Aaron Bach <bachya1208@gmail.com>"]
license = "MIT"
repository = "https://github.com/bachya/ecowitt2mqtt"
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
[tool.poetry.dependencies]
"ruamel.yaml" = ">=0.18.5"
"ruamel.yaml.clib" = ">=0.2.8,<0.3.0"
aiohttp = ">=3.9.0b0"
aiomqtt = ">=1,<3"
certifi = ">=2023.07.22"
colorlog = "^6.6.0"
fastapi = ">=0.89.1,<0.116.0"
frozenlist = "^1.4.0"
meteocalc = "^1.1.0"
python = "^3.10"
python-multipart = ">=0.0.5,<0.0.18"
rapidfuzz = ">=2.13,<4.0"
urllib3 = ">=1.26.18"
uvicorn = ">=0.19.0"
uvloop = ">=0.17,<0.22"
yarl = ">=1.9.2"
pydantic = "^2.5.3"
[tool.poetry.group.dev.dependencies]
GitPython = ">=3.1.35"
Pygments = ">=2.15.0"
aresponses = ">=2.1.6,<4.0.0"
blacken-docs = "^1.12.1"
codespell = "^2.2.2"
coverage = {version = ">=6.5,<8.0", extras = ["toml"]}
darglint = "^1.8.1"
isort = "^5.10.1"
mypy = "^1.2.0"
pre-commit = ">=2.20,<5.0"
pre-commit-hooks = ">=4.3,<6.0"
pylint = ">=2.15.5,<4.0.0"
pytest = ">=7.2,<9.0"
pytest-aiohttp = "^1.0.0"
pytest-asyncio = ">=0.20.1,<0.25.0"
pytest-cov = ">=4,<7"
pyupgrade = "^3.1.0"
pyyaml = "^6.0.1"
requests = ">=2.31.0"
ruff = ">=0.5.1,<0.7.4"
typing-extensions = "^4.8.0"
vulture = "^2.6"
yamllint = "^1.28.0"
[tool.poetry.scripts]
ecowitt2mqtt = "ecowitt2mqtt.__main__:main"
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/bachya/ecowitt2mqtt/issues"
Changelog = "https://github.com/bachya/ecowitt2mqtt/releases"
[tool.pylint.BASIC]
expected-line-ending-format = "LF"
[tool.pylint.DESIGN]
max-attributes = 20
[tool.pylint.FORMAT]
max-line-length = 88
[tool.pylint.MASTER]
ignore = [
"tests",
]
load-plugins = [
"pylint.extensions.bad_builtin",
"pylint.extensions.code_style",
"pylint.extensions.docparams",
"pylint.extensions.docstyle",
"pylint.extensions.empty_comment",
"pylint.extensions.overlapping_exceptions",
"pylint.extensions.typing",
]
[tool.pylint."MESSAGES CONTROL"]
# Reasons disabled:
# duplicate-code – The tests contain a lot of duplicated data payloads
# invalid-enum-extension – We need to backport StrEnums until we drop Python 3.10
# too-many-lines – We deal with a lot of data, so tests can be large
# unnecessary-pass - This can hurt readability
disable = [
"duplicate-code",
"invalid-enum-extension",
"too-many-lines",
"unnecessary-pass"
]
[tool.pylint.REPORTS]
score = false
[tool.pylint.SIMILARITIES]
# Minimum lines number of a similarity.
# We set this higher because of tests where data payloads look similar.
min-similarity-lines = 20
# Ignore comments when computing similarities.
ignore-comments = true
# Ignore docstrings when computing similarities.
ignore-docstrings = true
# Ignore imports when computing similarities.
ignore-imports = true
[tool.vulture]
min_confidence = 80
paths = ["ecowitt2mqtt", "tests"]
verbose = false