Skip to content

Conversation

@bearomorphism
Copy link
Contributor

@bearomorphism bearomorphism commented Nov 19, 2025

Why

docs/config.md basically mixed the usage of options that is only used by different cz commands together. It would be better if those options are categorized.

Also, duplication of option usage documentation occurs. It should be fixed.

This PR categorized and centralizes those configuration file options, and remove the duplication of option usages.

The configuration file doc and version provider doc have their own pages now.

Checklist

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regenerated by AI, need to review correctness

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

regenerated by AI

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also need to review correctness

@codecov
Copy link

codecov bot commented Nov 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.68%. Comparing base (120d514) to head (01c0409).
⚠️ Report is 846 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1657      +/-   ##
==========================================
+ 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% <ø> (+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.

@bearomorphism bearomorphism marked this pull request as ready for review November 19, 2025 09:17
@bearomorphism bearomorphism marked this pull request as draft November 19, 2025 13:50
@bearomorphism
Copy link
Contributor Author

bearomorphism commented Nov 19, 2025

I need time to review and improve it.


## Creating a Configuration File

You can create a configuration file manually, or use Commitizen's interactive init command:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
You can create a configuration file manually, or use Commitizen's interactive init command:
You can create a configuration file manually, or use Commitizen's interactive `init` command:

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or

Suggested change
You can create a configuration file manually, or use Commitizen's interactive init command:
You can create a configuration file manually, or use Commitizen's interactive initialization command:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or just remove the init

or "It is recommended to create a configuration file via our cz init command." and add a link to init documentation

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or "It is recommended to create a configuration file via our cz init command." and add a link to init documentation

This is also good

version = "0.1.0" # Managed by Commitizen
```

### `poetry`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this only make sense for poetry < 2.0. for poetry >= 2.0, pep621 is suggested

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you provide details or suggested changes? Thanks!


### `uv`

Manages version in both `pyproject.toml` (`project.version`) and `uv.lock` (`package.version` for the matching package name). This ensures consistency between your project metadata and lock file.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It basically follows PEP621, would be better if we mention that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you provide suggested changes? Thanks

@@ -0,0 +1,308 @@
# Version Providers
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of topic: I think we'll need to make these version providers separate providers / python package at some point

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can create a ticket to keep track of this issue. I am not familiar with the mechanism of version providers actually

@bearomorphism bearomorphism marked this pull request as ready for review November 19, 2025 16:18
@bearomorphism
Copy link
Contributor Author

Now it is ready for review. I will probably use AI to improve the wording in the documentation in some future PRs.

Let's improve the structure first.

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.

2 participants