feat: add commitizen configuration for automated version management

- Add commitizen to dev dependencies for semantic versioning
- Configure commitizen with conventional commits and poetry integration
- Set up automatic changelog generation and PEP440 version scheme
- Enable major version zero mode for pre-1.0 releases
- Update poetry.lock with new commitizen dependency

Signed-off-by: longhao <hal.long@outlook.com>
This commit is contained in:
longhao 2025-05-27 14:41:55 +08:00 committed by Hal
parent c28da94f9c
commit ba8536f718
2 changed files with 310 additions and 5 deletions

View file

@ -43,6 +43,7 @@ pytest-mock = "^3.12.0"
ruff = "^0.1.0"
pre-commit = "^3.6.0"
nox = "^2025.0.0"
commitizen = "^3.0.0"
[tool.poetry.scripts]
pypi-query-mcp-server = "pypi_query_mcp.server:main"
@ -98,3 +99,11 @@ exclude_lines = [
"if 0:",
"if __name__ == .__main__.:",
]
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
version_scheme = "pep440"
version_provider = "poetry"
update_changelog_on_bump = true
major_version_zero = true