Skip to content

Commit dcea2c7

Browse files
committed
Adding semantic release to pyproject.toml
1 parent f647d74 commit dcea2c7

File tree

2 files changed

+2861
-2468
lines changed

2 files changed

+2861
-2468
lines changed

pyproject.toml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ dev = [
8282
"pdm>=2.24.0",
8383
"pytest",
8484
"mypy>=1.17.0",
85+
"python-semantic-release~=7.32",
8586
]
8687

8788
notebook = [
@@ -165,4 +166,18 @@ python_version = "3.10"
165166
[tool.pytest.ini_options]
166167
markers = [
167168
"qualitative: Marks the test as needing an exact output from an LLM; set by an ENV variable for CICD. All tests marked with this will xfail in CI/CD"
168-
]
169+
]
170+
171+
172+
[tool.semantic_release]
173+
# for default values check:
174+
# https://github.com/python-semantic-release/python-semantic-release/blob/v7.32.2/semantic_release/defaults.cfg
175+
176+
version_source = "tag_only"
177+
branch = "main"
178+
179+
# configure types which should trigger minor and patch version bumps respectively
180+
# (note that they must be a subset of the configured allowed types):
181+
parser_angular_allowed_types = "build,chore,ci,docs,feat,fix,perf,style,refactor,test"
182+
parser_angular_minor_types = "feat"
183+
parser_angular_patch_types = "fix,perf"

0 commit comments

Comments
 (0)