Skip to content

Commit e6106d4

Browse files
author
Dominik Falkner
committed
feat: Remove conventional commits
1 parent d1c3822 commit e6106d4

3 files changed

Lines changed: 2 additions & 20 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ A simple [Cookiecutter](https://github.com/cookiecutter/cookiecutter) template f
2727
- Ready to use **Docker images** as a base CI/CD
2828
- Cross-platform support for Linux, macOS (Apple silicon and Intel), and Windows
2929

30-
### Extras
31-
- Optionally follows the [Conventional Commits](https://www.conventionalcommits.org/) standard to automate [Semantic Versioning](https://semver.org/) and [Keep A Changelog](https://keepachangelog.com/) with [Commitizen](https://github.com/commitizen-tools/commitizen)
32-
3330
### Planned
3431
- [ ] **Automatic dependency** updates with [RenovateBot]()
3532

@@ -38,7 +35,7 @@ A simple [Cookiecutter](https://github.com/cookiecutter/cookiecutter) template f
3835
### Creating a new Python project
3936

4037
1. Install [Cruft](https://github.com/cruft/cruft) and [Cookiecutter](https://github.com/cookiecutter/cookiecutter)
41-
2. In the directory that contains the cloned repository, run:
38+
2. Run:
4239
```sh
4340
cruft create -f https://gitdma.risc-software.at/common/python-package-template
4441
```
@@ -56,7 +53,6 @@ A simple [Cookiecutter](https://github.com/cookiecutter/cookiecutter) template f
5653
| `author_email` <br> "sonja.sunshine@risc-software.at" | The email address of the primary author of the package. |
5754
| `python_version` <br> "3.11" | The minimum Python version that the package requires. |
5855
| `docstring_style` <br> ["Google", "Numpy"] | Whether to use and validate [NumPy-style](https://numpydoc.readthedocs.io/en/latest/format.html) or [Google-style docstrings](https://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings). |
59-
| `use_conventional_commits` <br> [true, false] | If true, [Commitizen](https://github.com/commitizen-tools/commitizen) will verify that your commits follow the [Conventional Commits](https://www.conventionalcommits.org/) standard. Then, `cz bump` may be used to automate [Semantic Versioning](https://semver.org/) and [Keep A Changelog](https://keepachangelog.com/). |
6056

6157
## Supported Poe Tasks
6258

‎cookiecutter.json‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"author_email": "sonja.sunshine@risc-software.com",
77
"python_version": "3.11",
88
"docstring_style": ["Google", "Numpy"],
9-
"use_conventional_commits": true,
109
"__package_name_kebab_case": "{{ cookiecutter.package_name|slugify }}",
1110
"__package_name_snake_case": "{{ cookiecutter.package_name|slugify(separator='_') }}"
12-
}
11+
}

‎{{ cookiecutter.__package_name_kebab_case }}/pyproject.toml‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ pytest-xdist = "^3.3.1"
4343
mkdocs = "^1.4.3"
4444
mkdocs-material = "^9.1.15"
4545
mkdocstrings = {extras = ["python"], version = "^0.22.0"}
46-
{%- if cookiecutter.use_conventional_commits %}
47-
commitizen = "^3.2.2"
48-
{%- endif %}
4946

5047
# https://github.com/nat-n/poethepoet
5148
[tool.poe.tasks]
@@ -91,13 +88,3 @@ max-doc-length = 120
9188

9289
[tool.ruff.pydocstyle]
9390
convention = "{{ cookiecutter.docstring_style|lower }}"
94-
95-
{%- if cookiecutter.use_conventional_commits %}
96-
# https://commitizen-tools.github.io/commitizen/config/
97-
[tool.commitizen]
98-
bump_message = "bump(release): v$current_version → v$new_version"
99-
tag_format = "v$version"
100-
update_changelog_on_bump = true
101-
version = "0.0.1"
102-
version_files = ["pyproject.toml:version"]
103-
{%- endif %}

0 commit comments

Comments
 (0)