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"]