-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (124 loc) · 3.51 KB
/
pyproject.toml
File metadata and controls
140 lines (124 loc) · 3.51 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
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
[project]
name = "esiosapy"
version = "3.0.2"
description = "Unofficial ESIOS API Python library. Up to date and fully equipped."
authors = [{ name = "M4RC0Sx" }]
requires-python = ">=3.10,<4"
readme = "README.md"
license = "GPL-3.0-or-later"
keywords = ["esios", "ree", "energy", "api", "electricity", "spain"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"pydantic>=2.12.5",
"requests>=2.32.5",
"tenacity>=9.0.0",
]
[dependency-groups]
dev = [
"beautifulsoup4>=4.14.3",
"mypy>=1.19.1",
"ruff>=0.15.0",
"types-requests>=2.32.4.20260107",
]
test = [
"pytest>=8.4.2",
"pytest-asyncio>=1.2.0",
"pytest-cov>=7.0.0",
"pytest-mock>=3.15.1",
"httpx>=0.27.0",
]
docs = [
"mkdocs>=1.6.1",
"mkdocs-material>=9.6.1",
"mkdocstrings[python]>=0.11.0",
]
[project.urls]
Homepage = "https://github.com/M4RC0Sx/esiosapy"
Documentation = "https://m4rc0sx.github.io/esiosapy/"
Repository = "https://github.com/M4RC0Sx/esiosapy"
Issues = "https://github.com/M4RC0Sx/esiosapy/issues"
Changelog = "https://github.com/M4RC0Sx/esiosapy/blob/master/CHANGELOG.md"
[project.optional-dependencies]
all = ["httpx>=0.27.0", "beautifulsoup4>=4.14.3"]
async = ["httpx>=0.27.0"]
beautifulsoup = ["beautifulsoup4>=4.14.3"]
[project.scripts]
esiosapy = "esiosapy.cli:main"
[tool.uv]
default-groups = ["dev", "test"]
[tool.uv.build-backend]
module-name = ["esiosapy"]
module-root = ""
[build-system]
requires = ["uv_build>=0.9.30,<0.10.0"]
build-backend = "uv_build"
[tool.ruff]
target-version = "py310"
line-length = 88
[tool.ruff.lint]
unfixable = [
"ERA", # do not autoremove commented out code
]
extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"ERA", # flake8-eradicate/eradicate
"I", # isort
"N", # pep8-naming
"PIE", # flake8-pie
"PGH", # pygrep
"RUF", # ruff checks
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
]
ignore = ["ERA001"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.isort]
force-single-line = true
lines-between-types = 1
lines-after-imports = 2
known-first-party = ["esiosapy"]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true
[tool.mypy]
strict = true
python_version = "3.10"
namespace_packages = true
show_error_codes = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
plugins = ["pydantic.mypy"]
warn_redundant_casts = true
warn_unused_ignores = true
warn_unused_configs = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
disallow_untyped_defs = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[tool.coverage.run]
source = ["esiosapy"]
relative_files = true
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"