-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
186 lines (152 loc) · 3.54 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
[tool.poetry]
name = "intellifire4py"
version = "4.1.10"
description = "Intellifire4Py"
authors = ["Jeff Stein <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/jeeftor/intellifire4py"
repository = "https://github.com/jeeftor/intellifire4py"
documentation = "https://intellifire4py.readthedocs.io"
classifiers = ["Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3",
]
[virtualenvs]
create = true
in-project = true
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/jeeftor/intellifire4py/issues"
Changelog = "https://github.com/jeeftor/intellifire4py/releases"
[tool.poetry.dependencies]
python = "^3.11"
pydantic = ">=1.10.8"
aenum = ">=3.1.11"
# Rich is needed
rich = ">= 10.0.0"
# Installing pre-versions
# pip install --pre -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple intellifire4py --upgrade
aiohttp = "^3.9.1"
[tool.poetry.scripts]
intellifire4py = "intellifire4py.__main__:main"
[tool.poetry.group.dev.dependencies]
mypy = "^1.5.1"
black = ">=23.9.1,<25.0.0"
pytest = "^7.4.2"
sphinx = "^7.2.6"
pre-commit = "^3.4.0"
pre-commit-hooks = "4.5.0"
pyupgrade = "^3.13.0"
nox = "^2023.4.22"
nox-poetry = "^1.0.3"
pytest-asyncio = "^0.21.1"
sphinx-copybutton = "^0.5.2"
myst-parser = "^2.0.0"
sphinx-click = "^5.0.1"
sphinx-autobuild = "^2021.3.14"
typeguard = "^4.1.5"
xdoctest = "^1.1.1"
pytest-cov = "^4.1.0"
ruff = "0.1.4"
aioresponses = "^0.7.6"
pytest-xdist = "^3.5.0"
[tool.pytest.ini_options]
#addopts = "-n 8 --cov-report xml:cov.xml --cov src --cov-report term-missing --durations-min=1 --durations=0"
testpaths = [
"tests"
]
[tool.coverage.paths]
source = ["src", "*/site-packages"]
tests = ["tests", "*/tests"]
[tool.coverage.run]
branch = true
source = ["intellifire4py", "tests"]
[tool.coverage.report]
show_missing = true
#fail_under = 100
[tool.isort]
profile = "black"
force_single_line = true
lines_after_imports = 2
[tool.mypy]
python_version = "3.11"
strict = false
warn_unreachable = false
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
plugins = "pydantic.mypy"
ignore_missing_imports = true
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
ignore = ["D202", "D412", "E501"]
# Same as Black.
line-length = 88
select = ["B", "B9", "C", "D", "E", "F", "N", "S", "W"]
# Assume Python 3.11.
target-version = "py311"
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
[tool.ruff.flake8-pytest-style]
mark-parentheses = false
fixture-parentheses = false
[tool.ruff.isort]
known-first-party = ["open_meteo"]
# [tool.ruff.lint.flake8-type-checking]
# runtime-evaluated-base-classes = [
# "mashumaro.mixins.orjson.DataClassORJSONMixin",
# ]
[tool.ruff.mccabe]
max-complexity = 25
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.per-file-ignores]
"tests/*" = ["S101"]
# aiohttp = "^3.8.3"
[tool.pylint.MASTER]
ignore= [
"tests"
]
[tool.pylint.BASIC]
good-names = [
"_",
"ex",
"fp",
"i",
"id",
"j",
"k",
"on",
"Run",
"T",
]
[tool.pylint."MESSAGES CONTROL"]
disable= [
"duplicate-code",
"format",
"unsubscriptable-object",
]