commit-check 2.19.3__py3-none-any.whl → 2.19.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- commit_check/__init__.py +4 -0
- commit_check/ai_signatures_data.py +5 -0
- {commit_check-2.19.3.dist-info → commit_check-2.19.4.dist-info}/METADATA +3 -3
- {commit_check-2.19.3.dist-info → commit_check-2.19.4.dist-info}/RECORD +8 -8
- {commit_check-2.19.3.dist-info → commit_check-2.19.4.dist-info}/WHEEL +0 -0
- {commit_check-2.19.3.dist-info → commit_check-2.19.4.dist-info}/entry_points.txt +0 -0
- {commit_check-2.19.3.dist-info → commit_check-2.19.4.dist-info}/licenses/LICENSE +0 -0
- {commit_check-2.19.3.dist-info → commit_check-2.19.4.dist-info}/top_level.txt +0 -0
commit_check/__init__.py
CHANGED
|
@@ -86,6 +86,10 @@ DEFAULT_BRANCH_TYPES = [
|
|
|
86
86
|
"codex",
|
|
87
87
|
"copilot",
|
|
88
88
|
"cursor",
|
|
89
|
+
# VS Code's Agents window hard-codes this prefix and users cannot change
|
|
90
|
+
# it; the spec will accept it as an alias of "ai"
|
|
91
|
+
# (https://github.com/conventional-branch/conventional-branch/issues/196).
|
|
92
|
+
"agents",
|
|
89
93
|
# Automation/bot prefixes
|
|
90
94
|
"dependabot",
|
|
91
95
|
"renovate",
|
|
@@ -242,6 +242,11 @@ CURSOR = KnownAiTool(
|
|
|
242
242
|
# Cursor's agent signs as ``Cursor Agent <cursoragent@cursor.com>``;
|
|
243
243
|
# the address catches it under any display name.
|
|
244
244
|
*_identity(r"[^<\n]*<cursoragent@cursor\.com>", "... <cursoragent@cursor.com>"),
|
|
245
|
+
# Cursor's own mark on commits it writes:
|
|
246
|
+
# https://forum.cursor.com/t/allow-disabling-made-with-cursor-commit-trailer/154494
|
|
247
|
+
_trailer(
|
|
248
|
+
("Made-with",), r"Cursor", ROLE_STAMP, "``Made-with: Cursor`` trailer"
|
|
249
|
+
),
|
|
245
250
|
],
|
|
246
251
|
)
|
|
247
252
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: commit-check
|
|
3
|
-
Version: 2.19.
|
|
3
|
+
Version: 2.19.4
|
|
4
4
|
Summary: Commit policy as code for teams and AI agents: check commit messages, branch names, authors, tags, files and AI attribution.
|
|
5
5
|
Author-email: Xianpeng Shen <xianpeng.shen@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -88,7 +88,7 @@ Stop bad commits before they exist. In `.pre-commit-config.yaml`:
|
|
|
88
88
|
```yaml
|
|
89
89
|
repos:
|
|
90
90
|
- repo: https://github.com/commit-check/commit-check
|
|
91
|
-
rev: v2.19.
|
|
91
|
+
rev: v2.19.4
|
|
92
92
|
hooks:
|
|
93
93
|
- id: check-message
|
|
94
94
|
- id: check-branch
|
|
@@ -175,7 +175,7 @@ Priority: CLI > env > TOML > default. Booleans accept `true/false`, `yes/no`,
|
|
|
175
175
|
| `commit.author_name_pattern` | `""` | `--author-name-pattern` | `CCHK_AUTHOR_NAME_PATTERN` | Regex the author name must match (CC101, with `--author-name`) |
|
|
176
176
|
| `branch.conventional_branch` | `true` | `--conventional-branch` | `CCHK_CONVENTIONAL_BRANCH` | Enforce `<type>/<description>` branch names (CC201) |
|
|
177
177
|
| `branch.require_description_grammar` | `false` | `--require-description-grammar` | `CCHK_REQUIRE_DESCRIPTION_GRAMMAR` | Also hold the description after `<type>/` to the Conventional Branch grammar: lowercase alphanumeric words joined by single hyphens, dots allowed inside a word (CC201). Off by default, since bot branches such as `dependabot/npm_and_yarn/lodash-4.17.21` do not follow it |
|
|
178
|
-
| `branch.allow_branch_types` | `feature, bugfix, hotfix, release, chore, feat, fix, build, ci, docs, perf, refactor, test, style, ai, claude, codex, copilot, cursor, dependabot, renovate` | `--allow-branch-types` | `CCHK_ALLOW_BRANCH_TYPES` | Allowed branch `<type>` prefixes; each entry is a regex matched against the whole type |
|
|
178
|
+
| `branch.allow_branch_types` | `feature, bugfix, hotfix, release, chore, feat, fix, build, ci, docs, perf, refactor, test, style, ai, claude, codex, copilot, cursor, agents, dependabot, renovate` | `--allow-branch-types` | `CCHK_ALLOW_BRANCH_TYPES` | Allowed branch `<type>` prefixes; each entry is a regex matched against the whole type |
|
|
179
179
|
| `branch.allow_branch_names` | `[]` | `--allow-branch-names` | `CCHK_ALLOW_BRANCH_NAMES` | Extra branch names allowed besides `main`, `master`, `develop`, `HEAD`, `PR-.+`; each entry is a regex matched against the whole branch name, so `create-pull-request/.+` allows a family of them |
|
|
180
180
|
| `branch.require_rebase_target` | `""` | `--require-rebase-target` | `CCHK_REQUIRE_REBASE_TARGET` | Branch the current branch must be rebased onto (CC202); empty disables |
|
|
181
181
|
| `branch.ignore_authors` | `[]` | `--branch-ignore-authors` | `CCHK_BRANCH_IGNORE_AUTHORS` | Authors whose branches skip the branch checks |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
commit_check/__init__.py,sha256=
|
|
1
|
+
commit_check/__init__.py,sha256=UAg0cSgL4QKAOc9GEbqFdoQ94JejOupRGoGgaDwIcF0,5456
|
|
2
2
|
commit_check/ai_policy.py,sha256=gYC3ROLgGL1TDyhPkFXkV-NiYbvMt80Qt0MFrJcbJY4,8131
|
|
3
3
|
commit_check/ai_signatures.py,sha256=0HTZy4othuwKVqfGZ2J7PaIMUPmQArhEQa0k7zGnCzs,10251
|
|
4
|
-
commit_check/ai_signatures_data.py,sha256=
|
|
4
|
+
commit_check/ai_signatures_data.py,sha256=dgTJxur3IqYLbmj0PzhG6LWb8mY2QwWUJVaFCLQJYzo,15258
|
|
5
5
|
commit_check/api.py,sha256=07bvBtV8PrhZIOwCDHiHfu_7CXsX_4U2_K2xMAucd6c,12905
|
|
6
6
|
commit_check/config.py,sha256=SB8Zvcll-kFOZgQ-olzYLv9CLJqaYIaCb37bcrjVNOE,14068
|
|
7
7
|
commit_check/config_merger.py,sha256=umsjoTcWG7WXufxn7dIMlHrek0a8VWmqjynJR-A4LYQ,13406
|
|
@@ -13,9 +13,9 @@ commit_check/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
13
13
|
commit_check/rule_builder.py,sha256=XqTjDrPcepC6jP-ui0RyiMFYSVvKXGuRxwllg_XxvKI,34391
|
|
14
14
|
commit_check/rules_catalog.py,sha256=-C3Jo721vXRrY7-LzJs9iNF3ffXKEFldDfmBoLtujt4,11920
|
|
15
15
|
commit_check/util.py,sha256=Q9nI_0yYu6WEJLD55vMnFozWhZzfP2Z4xrElecmqZBQ,32755
|
|
16
|
-
commit_check-2.19.
|
|
17
|
-
commit_check-2.19.
|
|
18
|
-
commit_check-2.19.
|
|
19
|
-
commit_check-2.19.
|
|
20
|
-
commit_check-2.19.
|
|
21
|
-
commit_check-2.19.
|
|
16
|
+
commit_check-2.19.4.dist-info/licenses/LICENSE,sha256=9mdTva71kQhrpWh_nZulxrdCnUrl5c6xJYh5hdo4p_s,1070
|
|
17
|
+
commit_check-2.19.4.dist-info/METADATA,sha256=Nmu5vjvJVhOUeHNlCRmoVzk-HMjHnU-l8VLPLh1x_ns,16369
|
|
18
|
+
commit_check-2.19.4.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
19
|
+
commit_check-2.19.4.dist-info/entry_points.txt,sha256=YMrkFGeub-3-IanV1d9qnopXVaRQM7MA9foXKW9iZ88,86
|
|
20
|
+
commit_check-2.19.4.dist-info/top_level.txt,sha256=Wf46u-ooHBMJNHbhfrBNQw3wC5_m8wt-o_Lfbc4QpRg,13
|
|
21
|
+
commit_check-2.19.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|