From 5356d321f6e2c30f4bc7450f50ff8545cea9730d Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Mon, 20 Nov 2023 23:03:08 +0100 Subject: [PATCH] feat: add branch groups for PSR --- project/pyproject.toml.jinja | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/project/pyproject.toml.jinja b/project/pyproject.toml.jinja index 9b11bb6e..9dddb04f 100644 --- a/project/pyproject.toml.jinja +++ b/project/pyproject.toml.jinja @@ -52,7 +52,6 @@ sphinx-autobuild = ">=2021.3.14" {%- endif %} [tool.semantic_release] -branch = "main" version_toml = ["pyproject.toml:tool.poetry.version"] version_variables = [ "src/{{ package_name }}/__init__.py:__version__", @@ -71,6 +70,13 @@ exclude_commit_patterns = [ [tool.semantic_release.changelog.environment] keep_trailing_newline = true +[tool.semantic_release.branches.main] +match = "main" + +[tool.semantic_release.branches.noop] +match = "(?!main$)" +prerelease = true + [tool.pytest.ini_options] addopts = "-v -Wdefault --cov={{ package_name }} --cov-report=term-missing:skip-covered" pythonpath = ["src"]