-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
132 lines (110 loc) · 2.79 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
127
128
129
130
131
132
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build]
only-include = ["peprock"]
[project]
name = "peprock"
version = "1.7.3"
description = "Foundational Python library"
readme = "README.md"
requires-python = ">=3.10,<4"
license = "MIT"
authors = [
{ "name" = "Jakob Keller", "email" = "[email protected]" },
]
keywords = [
"peprock",
"datetime",
"models",
"patterns",
"subclasses",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]
dependencies = [
"typing-extensions >=4.0.1,<5; python_version < '3.11'",
]
[dependency-groups]
dev = [
"coverage[toml] >=7.2.1,<8",
"mypy[faster-cache] >=1.1.1,<2",
"pre-commit >=4.0.1,<5",
"pdoc3 >=0.11.1,<0.12",
"pytest >=8.0.0,<9",
"pytest-cov >=5.0.0,<6",
"ruff >=0.7.0,<0.8",
]
[project.urls]
source = "https://github.com/Ponte-Energy-Partners/peprock"
documentation = "https://api.peprock.ponte.energy"
"Ponte Energy Partners" = "https://ponte.energy"
[tool.commitizen]
version_provider = "pep621"
update_changelog_on_bump = true
bump_message = "chore: bump version to $new_version"
pre_bump_hooks = [
"uv lock && git add uv.lock",
]
changelog_incremental = true
[tool.coverage.report]
exclude_also = [
"@abc\\.abstractmethod$",
"^if typing\\.TYPE_CHECKING:$",
]
[tool.coverage.run]
source = [
"peprock",
]
[tool.mypy]
files = "peprock"
explicit_package_bases = true
python_version = "3.10"
platform = "linux"
warn_redundant_casts = true
warn_unused_ignores = true
warn_unused_configs = true
warn_unreachable = true
[tool.pytest.ini_options]
addopts = "--doctest-modules --import-mode=importlib"
filterwarnings = [
"error",
]
minversion = "7.2"
xfail_strict = true
[tool.ruff]
required-version = ">=0.6.0"
target-version = "py310"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D203", # one-blank-line-before-class
"D213", # multi-line-summary-second-line
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"ANN", # flake8-annotations
"D", # pydocstyle
"PLR0912", # too-many-branches
"PLR0913", # too-many-arguments
"PLR0915", # too-many-statements
"S101", # assert
"SLF001", # private-member-access
"T201", # print-found
]
[tool.ruff.lint.flake8-annotations]
allow-star-arg-any = true
[tool.ruff.lint.isort]
combine-as-imports = true
force-wrap-aliases = true