You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4b1fd67
Browse filesBrowse the repository at this point in the historyBrowse files
- no (or an empty) [commit.types] in afterpython.toml means no check, instead of blocking every commit
- ap init asks whether to check commit messages; if not, [commit.types] is written commented out
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: afterpython/doc/package_maintenance/commit_workflow.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,11 @@ wip = "Work in progress"
45
45
```
46
46
To allow a new type, add a line, e.g. `deps = "Dependency updates"`; to disallow one, remove its line. The descriptions are shown in the commit message template and in the error message when a commit is rejected.
47
47
48
+
:::{note} Opting out
49
+
Commit messages are only checked when `[commit.types]` has at least one type.
50
+
To opt out, remove the section or leave it empty. If you opted out during `ap init`, the section is commented out, uncomment it to opt in.
51
+
:::
52
+
48
53
### Bypassing Checks
49
54
-`SKIP=ap-commit git commit` — skip the commit message check
50
55
-`git commit --no-verify` — skip all pre-commit and commit message hooks
0 commit comments