Skip to content

Conversation

@Lee-W
Copy link
Member

@Lee-W Lee-W commented Nov 8, 2025

Description

### Feat

- add config option for line length warning
- **conventional_commits**: allow exclamation in title on BC
- **version**: add the ability to just print major or minor version
- allow `amend!` prefix as created by `git --fixup=reword:<commit>`

### Fix

- **test**: set terminal width for cli tests
- **Init**: raise InitFailedError on keyboard interrupt on pre-commit hook question, simplify logic, remove unreachable code path

### Refactor

- **bump**: cleanup related to update_version_file
- **RestructuredTest**: rename variable, fix typo and remove unnecessary string copy
- **TomlConfig**: minor cleanups for DX
- **Commit**: refactor _prompt_commit_questions and fix some type hint
- **hooks**: refactor to improve readability
- **Init**: make project_info a module and remove self.project_info
- **BaseConfig**: update docstring, extract factory method and remove unnecessary variable assignment
- remove self.encoding for better maintainability
- **utils**: make get_backup_file_path to return a path for semantic correctness
- remove unnecessary class member tag_format
- **Bump**: remove use of getattr
- **ConventionalCommitsCz**: rewrite message method to make the pattern more clear
- **cmd**: unnest try except
- **BaseCommitizen**: remove NotImplementedError and make them abstract method
- **BaseCommitizen**: construct Style object directly to get rid of potential type error

Checklist

Code Changes

  • Add test cases to all the changes you introduce
  • Run poetry all locally to ensure this change passes linter check and tests
  • Manually test the changes:
    • Verify the feature/bug fix works as expected in real-world scenarios
    • Test edge cases and error conditions
    • Ensure backward compatibility is maintained
    • Document any manual testing steps performed
  • Update the documentation for the changes

Documentation Changes

  • Run poetry doc locally to ensure the documentation pages renders correctly
  • Check and fix any broken links (internal or external) in the documentation

When running poetry doc, any broken internal documentation links will be reported in the console output like this:

INFO    -  Doc file 'config.md' contains a link 'commands/bump.md#-post_bump_hooks', but the doc 'commands/bump.md' does not contain an anchor '#-post_bump_hooks'.

Expected Behavior

Steps to Test This Pull Request

Additional Context

bearomorphism and others added 30 commits November 8, 2025 19:02
…hook question, simplify logic, remove unreachable code path
…e behavior of library, improve readability with NamedTuple
Add a configuration (disable by default) to allow exclamation in
commit title to ease identify BC simple git log parsing.

Signed-off-by: Sebastien Fusilier <sebastien.fusilier@gmail.com>
Force consistent terminal width for tests to avoid wrapping differences
between single and multi-worker pytest modes

Signed-off-by: Sebastien Fusilier <sebastien.fusilier@gmail.com>
@Lee-W
Copy link
Member Author

Lee-W commented Nov 8, 2025

I'm planning on merging this next Monday

@codecov
Copy link

codecov bot commented Nov 8, 2025

Codecov Report

❌ Patch coverage is 97.32824% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 98.68%. Comparing base (120d514) to head (0695a2f).
⚠️ Report is 808 commits behind head on master.

Files with missing lines Patch % Lines
commitizen/commands/version.py 78.57% 3 Missing ⚠️
commitizen/commands/commit.py 96.66% 1 Missing ⚠️
commitizen/commands/init.py 97.05% 1 Missing ⚠️
commitizen/config/__init__.py 95.65% 1 Missing ⚠️
commitizen/config/factory.py 92.85% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1641      +/-   ##
==========================================
+ Coverage   97.33%   98.68%   +1.34%     
==========================================
  Files          42       60      +18     
  Lines        2104     2656     +552     
==========================================
+ Hits         2048     2621     +573     
+ Misses         56       35      -21     
Flag Coverage Δ
unittests 98.68% <97.32%> (+1.34%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants