-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (89 loc) · 2.73 KB
/
Copy pathpyproject.toml
File metadata and controls
104 lines (89 loc) · 2.73 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
104
[project]
name = "autarco"
version = "0.0.0"
description = "Asynchronous Python client for the Autarco Inverters"
authors = [{ name="Klaas Schoute", email="hello@student-techlife.com"}]
maintainers = [{name="Klaas Schoute", email="hello@student-techlife.com"}]
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.12"
readme = "README.md"
keywords = ["autarco", "inverter", "power", "energy", "async", "client"]
classifiers = [
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"aiohttp>=3.0.0",
"mashumaro>=3.12,<4.0.0",
"orjson>=3.9.14,<4.0.0",
"yarl>=1.6.0",
]
[tool.poetry]
packages = [
{ include = "autarco", from = "src" },
]
[tool.poetry.dependencies]
python = "^3.12"
[project.urls]
homepage = "https://github.com/klaasnicolaas/python-autarco"
repository = "https://github.com/klaasnicolaas/python-autarco"
documentation = "https://github.com/klaasnicolaas/python-autarco"
"Bug Tracker" = "https://github.com/klaasnicolaas/python-autarco/issues"
Changelog = "https://github.com/klaasnicolaas/python-autarco/releases"
[tool.poetry.group.dev.dependencies]
aresponses = "3.0.0"
codespell = "2.4.3"
covdefaults = "2.3.0"
coverage = {version = "7.16.0", extras = ["toml"]}
pre-commit-hooks = "6.0.0"
prek = "0.5.2"
pytest = "9.1.1"
pytest-asyncio = "1.4.0"
pytest-cov = "7.1.0"
ruff = "0.16.6"
syrupy = "6.0.0"
ty = "0.0.79"
yamllint = "1.38.0"
zizmor = "1.30.0"
[tool.coverage.run]
plugins = ["covdefaults"]
source = ["autarco"]
[tool.coverage.report]
fail_under = 90
show_missing = true
[tool.ty.environment]
python-version = "3.12"
[tool.pytest.ini_options]
addopts = "--cov"
asyncio_mode = "auto"
[tool.ruff]
target-version = "py312"
lint.extend-ignore = ["CPY001"] # Project files do not use copyright headers
lint.select = ["ALL"]
lint.ignore = [
"ANN401", # Opinionated warning on disallowing dynamically typed expressions
"D203", # Conflicts with other rules
"D213", # Conflicts with other rules
"D417", # False positives in some occasions
"PLR2004", # Just annoying, not really useful
"SLOT000", # Has a bug with enums: https://github.com/astral-sh/ruff/issues/5748
# Conflicts with the Ruff formatter
"COM812",
]
[tool.ruff.lint.flake8-pytest-style]
mark-parentheses = false
fixture-parentheses = false
[tool.ruff.lint.isort]
known-first-party = ["autarco"]
[tool.ruff.lint.mccabe]
max-complexity = 25
[build-system]
requires = ["poetry-core>=2.2.0"]
build-backend = "poetry.core.masonry.api"