-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (118 loc) · 3.31 KB
/
pyproject.toml
File metadata and controls
133 lines (118 loc) · 3.31 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
[build-system]
requires = ["hatchling>=1.8.0", "hatch-vcs", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"
[project]
name = "bo4e"
description = "Python Library that implements the BO4E Standard."
license = { text = "MIT" }
requires-python = ">=3.9"
authors = [
{ name = "Kevin Krechan", email = "kevin.krechan@hochfrequenz.de" },
{ name = "Leon Haffmans", email = "leon.haffmans@hochfrequenz.de" },
{ name = "Annika Schlögl", email = "annika.schloegl@hochfrequenz.de" },
{ name = "Franziska Vesely", email = "franziska.vesely@hochfrequenz.de" },
{ name = "Konstantin Klein", email = "konstantin.klein@hochfrequenz.de" },
]
keywords = ["bo4e", "bdew", "edi@energy"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"iso3166",
"pydantic>=2.0.0",
"pyhumps"
]# This list must be in synq with the ./requirements. in file!
# any dependency added here should also be added in docs/requirements.in and docs/requirements.txt respectively
dynamic = ["readme", "version"]
[project.optional-dependencies]
coverage = [
"coverage==7.6.1"
]
formatting = [
"black==24.8.0",
"isort==5.13.2"
]
json_schema = [
"click==8.1.7"
]
linting = [
"pylint==3.2.7"
]
spell_check = [
"codespell==2.3.0"
]
packaging = [
"build==1.2.2",
"twine==5.1.1"
]
tests = [
"dictdiffer==0.9.0",
"pytest==8.3.3",
"pytest-datafiles==3.0.0"
]
type_check = [
"mypy==1.11.2",
"networkx-stubs==0.0.1",
"pytest==8.3.3",
"types-requests==2.32.0.20240914"
]
[project.urls]
Changelog = "https://github.com/bo4e/bo4e-python/releases"
Homepage = "https://github.com/bo4e/bo4e-python"
Documentation = "https://bo4e-python.readthedocs.io/en/latest/"
[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/x-rst"
fragments = [{ path = "README.rst" }]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/_bo4e_python_version.py"
template = '''
version = "{version}"
'''
[tool.hatch.build.targets.sdist]
exclude = ["/unittests"]
[tool.hatch.build.targets.wheel]
only-include = ["src"]
sources = ["src"]
[tool.black]
line-length = 120
target_version = ["py38", "py39", "py310", "py311", "py312"]
[tool.setuptools_scm]
[tool.pytest.ini_options]
testpaths = "tests"
markers = ["datafiles: load datafiles"]
[tool.pylint.'MESSAGES CONTROL']
max-line-length = 120
[tool.isort]
line_length = 120
profile = "black"
[tool.mypy]
plugins = ["pydantic.mypy"]
follow_imports = "silent"
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
# for strict mypy: (this is the tricky one :-))
disallow_untyped_defs = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true
[tool.coverage.report]
exclude_also = [
# This covers both typing.TYPE_CHECKING and plain TYPE_CHECKING, with any amount of whitespace
"if\\s+(typing\\.)?TYPE_CHECKING:"
]