-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
83 lines (76 loc) · 1.75 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
[project]
name = "openelectricity"
version = "0.1.0"
description = "OpenElectricity Python Client"
readme = "README.md"
requires-python = ">=3.12"
license = "MIT"
authors = [
{ name = "OpenElectricity Contributors" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"httpx>=0.28.1",
"pydantic>=2.10.3",
]
[project.optional-dependencies]
dev = [
"hatch>=1.14.0",
"ruff>=0.8.3",
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.1.0",
"build>=1.0.3",
"twine>=4.0.2",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "openelectricity/__init__.py"
[tool.ruff]
target-version = "py312"
line-length = 130
exclude = [
"var",
"opennem/db/migrations",
"build",
"notebooks",
".ipython",
".jupyter",
]
[tool.ruff.lint]
select = [
"F", # flake8
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # pyupgrade
"T", # mypy
]
ignore = [
"B008", # do not perform function calls in argument defaults
"T201", # ignore print
"T203", # ignore pprint
"C901", # ignore function too complex
"E721", # igmpre unsafe type comparison
]
[tool.ruff.format]
quote-style = "double"
docstring-code-format = true
docstring-code-line-length = 100
[tool.pyright]
include = ["openelectricity/**/*.py"]
python_version = "3.12"
reportMissingImports = "error"
reportMissingTypeStubs = false