diff --git a/pyproject.toml b/pyproject.toml index e6ced1f7..4a8e4e63 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,6 @@ sphinx = ">=4.0" furo = ">=2023.5.20" [tool.semantic_release] -branch = "main" version_toml = ["pyproject.toml:tool.poetry.version"] version_variables = [ "src/django_codemod/__init__.py:__version__", @@ -69,6 +68,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=django_codemod --cov-report=term-missing:skip-covered" pythonpath = ["src"]