Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 8d4fa2db authored by Dorian Turba's avatar Dorian Turba
Browse files

chore: bumpversion

parent f740f5a7
No related branches found
Tags 1.1.2
No related merge requests found
[tool.bumpversion]
commit = true
config-file = "pyproject.toml"
current_version = "0.2.1"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
replace = "{new_version}"
......@@ -22,5 +21,3 @@ search = """## [Unreleased]
[[tool.bumpversion.files]]
allow-dirty = true
filename = "README.md"
replace = "{new_version}"
search = "{current_version}"
---
default_stages: [pre-commit]
repos:
# https://pre-commit.com/hooks.html
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-case-conflict # blocking
- id: check-merge-conflict # blocking
- id: detect-private-key # blocking
- id: fix-byte-order-marker # auto-fix
- id: trailing-whitespace # auto-fix
# force respect of Conventional Commits formatting: https://www.conventionalcommits.org/en/v1.0.0/
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.4.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [feat, fix, ci, doc, chore, test] # optional: list of Conventional Commits types to allow e.g. [feat, fix, ci, chore, test]
......@@ -11,8 +11,7 @@ with.
To set up your environment and install all necessary dependencies:
```sh
pip install --upgrade pip
pip install bump-my-version
pip install --upgrade pip bump-my-version pre-commit
```
### Bump version
......@@ -30,3 +29,17 @@ bump-my-version bump minor
```sh
bump-my-version bump patch
```
## Pre-commit
### install
```shell
pre-commit install
```
### test on all files
```shell
pre-commit run --all-files
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment