-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
103 lines (90 loc) · 2.6 KB
/
pyproject.toml
File metadata and controls
103 lines (90 loc) · 2.6 KB
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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "eg4-python"
version = "0.1.2"
description = "Python client for EG4 solar inverter monitoring with async/sync support"
readme = "README.md"
requires-python = ">=3.8"
license = {text = "Apache-2.0"}
authors = [
{name = "Matt Dreyer", email = "matt_dreyer@hotmail.com"}
]
keywords = ["eg4", "solar", "inverter", "monitoring", "api", "async", "home-assistant"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Monitoring",
"Topic :: Home Automation",
"Topic :: Scientific/Engineering",
"Framework :: AsyncIO",
]
dependencies = [
"aiohttp>=3.8.0",
"python-dotenv>=0.19.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0.0",
"ruff>=0.1.0",
"mypy>=1.0.0",
"black>=22.0.0",
"pre-commit>=2.20.0",
]
[project.urls]
Homepage = "https://github.com/matt-dreyer/eg4_python"
Documentation = "https://github.com/matt-dreyer/eg4_python"
Repository = "https://github.com/matt-dreyer/eg4_python"
"Bug Tracker" = "https://github.com/matt-dreyer/eg4_python/issues"
[tool.setuptools.packages.find]
where = ["."]
include = ["eg4_python*"]
exclude = ["tests*"]
[tool.ruff]
target-version = "py38"
line-length = 88
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"B", # bugbear
"I", # isort
"UP", # pyupgrade
"N", # pep8-naming
"ASYNC", # async-related rules
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"] # Allow assert statements in tests
[tool.mypy]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = "--cov=eg4_python --cov-report=html --cov-report=term-missing"
asyncio_mode = "auto"
[tool.coverage.run]
source = ["eg4_python"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.",
]