Skip to content

Commit

Permalink
ci: version using commitizen πŸ™ (#97)
Browse files Browse the repository at this point in the history
* feat: bump version file in pre-commit hook

* bump: version 0.2.0 β†’ 0.3.0
  • Loading branch information
KarelZe authored Feb 18, 2024
1 parent 1e7b4b1 commit 4a97281
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,15 @@ repos:
# Similar to: https://stackoverflow.com/a/73603491/5755604
additional_dependencies: ['types-PyYAML']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.1
rev: v0.2.2
hooks:
- id: ruff
args:
- --fix
- id: ruff-format
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.15.0
hooks:
- id: commitizen
stages: [commit-msg]
exclude: "^(references|reports)"
41 changes: 41 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
## 0.3.0 (2024-02-18)

### Feat

- bump version file in pre-commit hook

### Refactor

- move version to version file πŸ“‘ (#96)

## 0.0.8 (2024-02-04)

## 0.0.7 (2024-02-04)

### Feat

- improve links in examplesπŸ”— (#90)

## 0.0.6 (2024-01-15)

### Feat

- **ci**: add codespeedHQ performance analysisπŸ‡ (#81)
- **ci**: skip python pipelines for changes in docs (#80)
- **doc**: add analytics πŸ”’ (#79)
- **doc**: add light/dark mode to documentation🧾 (#78)

### Refactor

- **docs**: restructure readme + index (#82)
- use generic checks for missing columnsπŸ™‚ (#71)

## 0.0.5 (2024-01-06)

## 0.0.4 (2024-01-06)

## 0.0.3 (2024-01-06)

## 0.0.2 (2023-12-28)

## 0.0.1 (2023-12-28)
2 changes: 1 addition & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ platforms = ["win-64", "linux-64"]

[tasks]
# install packages not on conda-forge
postinstall = "pip install --upgrade --no-build-isolation --no-deps --disable-pip-version-check -e .; pip install pytest-codspeed mkdocs-bibtex"
postinstall = "pip install --upgrade --no-build-isolation --no-deps --disable-pip-version-check -e .; pip install pytest-codspeed mkdocs-bibtex commitizen"
doc = "mkdocs serve"
test = "pytest -v tests/ --cov=src --cov-report=xml"
lint = "pre-commit run --all"
Expand Down
16 changes: 16 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,22 @@ exclude_also = [
]
show_missing = true

[tool.commitizen]
name = "cz_conventional_commits"
version = "0.3.0"
tag_format = "$version"
version_files = [
"CITATION.cff:version = {",
"docs/index.md:version",
"pyproject.toml:version",
"README.md:version = {",
"version",
]
bump_message = "bump: version $current_version β†’ $new_version"
update_changelog_on_bump = true
annotated_tag = true


[tool.ruff]


Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.8
0.0.9

0 comments on commit 4a97281

Please sign in to comment.