Skip to content

Commit 8ea0ef1

Browse files
authored
Merge pull request #2 from rodneylab/ci__update_ci_config
ci: 🐝 add local cz tooling
2 parents 7378f8c + a17c759 commit 8ea0ef1

File tree

2 files changed

+32
-23
lines changed

2 files changed

+32
-23
lines changed

.cz.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[tool.commitizen]
2+
name = "cz_conventional_commits"
3+
tag_format = "$version"
4+
version_scheme = "semver"
5+
version_provider = "cargo"
6+
update_changelog_on_bump = true
7+
major_version_zero = true

.pre-commit-config.yaml

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,39 @@
11
repos:
2-
- repo: https://github.com/commitizen-tools/commitizen
3-
rev: v4.1.0
4-
hooks:
2+
- hooks:
53
- id: commitizen
64
stages:
75
- commit-msg
8-
- repo: https://github.com/doublify/pre-commit-rust
9-
rev: v1.0
10-
hooks:
6+
repo: https://github.com/commitizen-tools/commitizen
7+
rev: v4.1.0
8+
- hooks:
119
- id: fmt
1210
- id: cargo-check
1311
- id: clippy
14-
- repo: https://github.com/gitleaks/gitleaks
15-
rev: v8.21.2
16-
hooks:
12+
repo: https://github.com/doublify/pre-commit-rust
13+
rev: v1.0
14+
- hooks:
1715
- id: gitleaks
18-
- repo: https://github.com/google/yamlfmt
19-
rev: v0.14.0
20-
hooks:
16+
repo: https://github.com/gitleaks/gitleaks
17+
rev: v8.21.2
18+
- hooks:
2119
- id: yamlfmt
22-
- repo: https://github.com/pre-commit/pre-commit-hooks
23-
rev: v5.0.0
24-
hooks:
25-
- id: trailing-whitespace
26-
args:
20+
repo: https://github.com/google/yamlfmt
21+
rev: v0.14.0
22+
- hooks:
23+
- args:
2724
- --markdown-linebreak-ext=md
25+
id: trailing-whitespace
2826
- id: end-of-file-fixer
2927
- id: check-yaml
30-
- id: check-json
31-
exclude: .vscode
28+
- exclude: .vscode
29+
id: check-json
3230
- id: no-commit-to-branch
33-
- repo: https://github.com/EmbarkStudios/cargo-deny
31+
repo: https://github.com/pre-commit/pre-commit-hooks
32+
rev: v5.0.0
33+
- hooks:
34+
- args:
35+
- --all-features
36+
- check
37+
id: cargo-deny
38+
repo: https://github.com/EmbarkStudios/cargo-deny
3439
rev: 0.16.3
35-
hooks:
36-
- id: cargo-deny
37-
args: ["--all-features", "check"]

0 commit comments

Comments
 (0)