generated from Hochfrequenz/python_template_repository
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
126 lines (109 loc) · 3.33 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
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
# NOTE: you have to use single-quoted strings in TOML for regular expressions.
# It's the equivalent of r-strings in Python. Multiline strings are treated as
# verbose regular expressions by Black. Use [ ] to denote a significant space
# character.
# Build system information and other project-specific configuration below.
[build-system]
requires = ["hatchling==1.27.0", "hatch-vcs", "hatch-fancy-pypi-readme"]
# pinned hatchling version because https://github.com/astral-sh/rye/issues/1446
build-backend = "hatchling.build"
[project]
name = "edi_energy_scraper"
description = "a scraper to mirror edi-energy.de"
license = { text = "MIT" }
requires-python = ">=3.10"
authors = [
{ name = "Hochfrequenz Unternehmensberatung GmbH", email = "info+github@hochfrequenz.de" },
]
keywords = ["automation", "ahb", "bdew", "edi@energy"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"aiohttp>=3.8.4",
"pypdf>=3.4.1",
"efoli>=1.4.0",
"pytz>=2022.7.1",
"pydantic>=2",
"pytz>=2024.2",
"more_itertools"
]
dynamic = ["readme", "version"]
[project.optional-dependencies]
coverage = [
"coverage==7.6.7"
]
formatting = [
"black==24.10.0",
"isort==5.13.2"
]
linting = [
"pylint==3.3.3"
]
spellcheck = [
"codespell==2.3.0"
]
test_packaging = [
"build==1.2.2.post1",
"twine==6.0.1"
]
tests = [
"aioresponses==0.7.7",
"freezegun==1.5.1",
"pytest==8.3.4",
"pytest-asyncio==0.25.0",
"pytest-mock==3.14.0",
"syrupy==4.8.0"
]
type_check = [
"mypy==1.14.1",
"types-pytz==2024.1.0.20240417"
]
[project.urls]
Changelog = "https://github.com/Hochfrequenz/edi_energy_scraper/releases"
Homepage = "https://github.com/Hochfrequenz/edi_energy_scraper"
[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
fragments = [{ path = "README.md" }]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/_edi_energy_scraper_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 = ["py39", "py310", "py311", "py312", "py313"] # <-- we need this as lons as we support python 3.8
[tool.isort]
line_length = 120
profile = "black"
[tool.pylint."MESSAGES CONTROL"]
max-line-length = 120
[tool.pytest.ini_options]
# When the mode is auto, all discovered async tests are considered asyncio-driven
# even if they have no @pytest.mark.asyncio marker.
# https://github.com/pytest-dev/pytest-asyncio#auto-mode
asyncio_mode = "auto"
markers = ["snapshot: mark a test as a snapshot test"]
# the following lines are needed if you would like to build a python package,
# and you want to use semantic versioning
# [build-system]
# requires = ["setuptools>=41.0", "wheel", "setuptools_scm[toml]>=3.4"]
# build-backend = "setuptools.build_meta"
# [tool.setuptools_scm]