Skip to content

feat!: expand default no-trailing-chars to include . ! ? and space#71

Merged
benner merged 1 commit into
mainfrom
feat/expand-no-trailing-chars-default
May 1, 2026
Merged

feat!: expand default no-trailing-chars to include . ! ? and space#71
benner merged 1 commit into
mainfrom
feat/expand-no-trailing-chars-default

Conversation

@benner
Copy link
Copy Markdown
Owner

@benner benner commented May 1, 2026

Previously only '.' was forbidden by default. Most style guides prohibit
all trailing punctuation and accidental trailing spaces are almost always
mistakes, so the default now covers the common cases out of the box.

Users who relied on '!' or '?' being allowed must explicitly configure:
no-trailing-chars = ["."]
or pass --no-trailing-chars "." to restore the old behaviour.

Previously only '.' was forbidden by default. Most style guides prohibit
all trailing punctuation and accidental trailing spaces are almost always
mistakes, so the default now covers the common cases out of the box.

Users who relied on '!' or '?' being allowed must explicitly configure:
  no-trailing-chars = ["."]
or pass --no-trailing-chars "." to restore the old behaviour.

Signed-off-by: Nerijus Bendžiūnas <nerijus.bendziunas@gmail.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

Coverage

Coverage Report (Δ +0.0%)
FileStmtsMissCoverMissing
src/git_commit_guard
   __init__.py3630100% 
TOTAL3630100% 

@benner benner marked this pull request as ready for review May 1, 2026 05:23
@benner benner merged commit 137f560 into main May 1, 2026
6 checks passed
@benner benner deleted the feat/expand-no-trailing-chars-default branch May 1, 2026 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant