- Notifications
You must be signed in to change notification settings - Fork261
Closed
Description
Platform
Windows 11
Version 10.0.26100 Build 26100
Python 3.13.3
(python-)semantic-release version 10.2.0
What's the issue:
The getting started docs on the semantic release webpage suggest the following example for commit exclusion.
To set commit exclusion patterns for a conventional commits parsers, add the following to your
pyproject.tomlfile:.. code-block:: toml
[tool.semantic_release.changelog.exclude_commit_patterns]# Recommended patterns for conventional commits parser that is scope awareexclude_commit_patterns = [ '''chore(?:\([^)]*?\))?: .+''', '''ci(?:\([^)]*?\))?: .+''', '''refactor(?:\([^)]*?\))?: .+''', '''style(?:\([^)]*?\))?: .+''', '''test(?:\([^)]*?\))?: .+''', '''build\((?!deps\): .+)''', '''Initial [Cc]ommit.*''',]
Notably, there is a reference to theexclude_commit_patterns object itself.
Running this configuration in mypyproject.toml and using the demo:
> semantic-release -v --noop version🛡 You are running in no-operation mode, because the '--noop' flag was supplied[23:54:38] INFO Loading configuration from pyproject.toml util.py:771 validation error for RawConfigchangelog.exclude_commit_patterns Input should be a valid tuple [type=tuple_type, input_value={'exclude_commit_patterns... 'Initial [Cc]ommit.*']}, input_type=dict] For further information visit https://errors.pydantic.dev/2.11/v/tuple_typeSolution
Remove.exclude_commit_patterns substring from the toml identifier.