File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 4848 hooks :
4949 - id : commitlint
5050 stages : [commit-msg]
51- additional_dependencies : ["@commitlint/config-angular"]
51+ # NOTE: the dependencies must consistent with `commitlint.config.js`
52+ additional_dependencies : ["@commitlint/config-conventional"]
Original file line number Diff line number Diff line change 1- // https://commitlint.js.org/#/reference-configuration?id=shareable-configuration
1+ // refer to: https://commitlint.js.org/#/reference-configuration?id=shareable-configuration
22// Rule: https://karma-runner.github.io/6.4/dev/git-commit-msg.html
3- module . exports = { extends : [ '@commitlint/config-angular' ] } ;
3+ // Rule: https://github.com/conventional-changelog/commitlint/tree/master/@commitlint/config-conventional
4+
5+ // NOTE: the extends must consistent with `.pre-commit-config.yaml`
6+ module . exports = { extends : [ '@commitlint/config-conventional' ] } ;
Original file line number Diff line number Diff line change 11[build-system ]
2- requires = [" hatchling >= 1.13.0" ]
2+ requires = [" hatchling >= 1.13.0" , " hatch-regex-commit " ]
33build-backend = " hatchling.build"
44
55# https://hatch.pypa.io/latest/config/metadata/
@@ -59,7 +59,16 @@ Documentation = "https://WSH032.github.io/fastapi-proxy-lib/"
5959
6060
6161[tool .hatch .version ]
62+ # refer to: https://github.com/frankie567/hatch-regex-commit
63+ source = " regex_commit"
64+ commit_extra_args = [" -e" ]
6265path = " src/fastapi_proxy_lib/__init__.py"
66+ # NOTE: `chore` is required by commitlint
67+ commit_message = " chore(version): 🚀 bump version {current_version} → {new_version}"
68+ tag_message = " 🚀 bump version {current_version} → {new_version}"
69+ # NOTE: `v` prefix is required by github `publish.yml` action
70+ tag_name = " v{new_version}"
71+
6372
6473[tool .hatch .envs .default ]
6574path = " .venv" # for vscode auto selecting python interpreter
You can’t perform that action at this time.
0 commit comments