Skip to content

Commit fd43e54

Browse files
committed
docs(faq): minor updates in faq and make features wont add a separate page
1 parent cbbf615 commit fd43e54

File tree

3 files changed

+30
-24
lines changed

3 files changed

+30
-24
lines changed

docs/faq.md

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
1-
## Features we won't add
1+
This page contains frequently asked questions about Commitizen.
22

3-
For a comprehensive list of features that have been considered but won't be implemented, please refer to our [issue tracker](https://github.com/commitizen-tools/commitizen/issues?q=is:issue%20state:closed%20label:%22issue-status:%20wont-fix%22%20OR%20label:%22issue-status:%20wont-implement%22).
3+
## Support for [`PEP621`](https://peps.python.org/pep-0621/)
44

5-
- Enable multiple locations of config file `.cz.*` [#955](https://github.com/commitizen-tools/commitizen/issues/955)
6-
- Create a flag to build the changelog from commits in multiple git repositories [#790](https://github.com/commitizen-tools/commitizen/issues/790)
7-
- Global Configuration [#597](https://github.com/commitizen-tools/commitizen/issues/597)
8-
9-
## Support for PEP621
10-
11-
PEP621 establishes a `[project]` definition inside `pyproject.toml`
5+
`PEP621` establishes a `[project]` definition inside `pyproject.toml`
126

137
```toml
148
[project]
159
name = "spam"
1610
version = "2.5.1"
1711
```
1812

19-
Commitizen provides a [`pep621` version provider](config.md#version-providers) to get and set version from this field.
13+
Commitizen provides a `PEP621` [version provider](config.md#version-providers) to get and set version from this field.
2014
You just need to set the proper `version_provider` setting:
2115

2216
```toml
@@ -28,12 +22,14 @@ version = "2.5.1"
2822
version_provider = "pep621"
2923
```
3024

31-
## Why are `revert` and `chore` valid types in the check pattern of cz conventional_commits but not types we can select?
25+
## Why are `revert` and `chore` valid types in the check pattern of `cz_conventional_commits` but not types we can select?
3226

33-
`revert` and `chore` are added to the "pattern" in `cz check` in order to prevent backward errors, but officially they are not part of conventional commits, we are using the latest [types from Angular](https://github.com/angular/angular/blob/22b96b9/CONTRIBUTING.md#type) (they used to but were removed).
34-
However, you can create a customized `cz` with those extra types. (See [Customization](customization.md)).
27+
`revert` and `chore` are added to `pattern` in `cz check` in order to prevent backward errors, but officially they are not part of conventional commits, we are using the latest [types from Angular](https://github.com/angular/angular/blob/22b96b9/CONTRIBUTING.md#type) (they used to but were removed).
28+
However, you can create a customized `cz` with those extra types. See [Customization](customization.md) for more details.
3529

36-
See more discussion in issue [#142](https://github.com/commitizen-tools/commitizen/issues/142) and [#36](https://github.com/commitizen-tools/commitizen/issues/36)
30+
See more discussion in
31+
- [issue #142](https://github.com/commitizen-tools/commitizen/issues/142)
32+
- [issue #36](https://github.com/commitizen-tools/commitizen/issues/36)
3733

3834
## How to revert a bump?
3935

@@ -47,23 +43,25 @@ git reset --hard HEAD
4743

4844
This will remove the last tag created, plus the commit containing the update to `.cz.toml` and the changelog generated for the version.
4945

50-
In case the commit was pushed to the server you can remove it by running
46+
In case the commit was pushed to the server, you can remove it by running:
5147

5248
```sh
5349
git push --delete origin <created_tag>
5450
```
5551

56-
## Is this project affiliated with the Commitizen JS project?
52+
## Is this project affiliated with the [Commitizen JS][cz-js] project?
5753

58-
It is not affiliated.
54+
**It is not affiliated.**
5955

6056
Both are used for similar purposes, parsing commits, generating changelog and version we presume.
6157
This one is written in python to make integration easier for python projects and the other serves the JS packages.
6258

63-
They differ a bit in design, not sure if cz-js does any of this, but these are some things you can do with this repo (python's commitizen):
59+
<!-- TODO: Add more details about the differences between Commitizen and Commitizen JS -->
6460

65-
- create custom rules, version bumps and changelog generation, by default we use the popular conventional commits (I think cz-js allows this).
66-
- single package, install one thing and it will work (cz-js is a monorepo, but you have to install different dependencies AFAIK)
61+
They differ a bit in design, not sure if cz-js does any of this, but these are some things you can do with our Commitizen:
62+
63+
- create custom rules, version bumps and changelog generation. By default, we use the popular conventional commits (I think cz-js allows this).
64+
- single package, install one thing and it will work. cz-js is a monorepo, but you have to install different dependencies as far as I know.
6765
- pre-commit integration
6866
- works on any language project, as long as you create the `.cz.toml` or `cz.toml` file.
6967

@@ -73,16 +71,14 @@ If you are using conventional commits in your git history, then you could swap o
7371

7472
Regarding the name, [cz-js][cz-js] came first, they used the word Commitizen first. When this project was created originally, the creator read "be a good commitizen", and thought it was just a cool word that made sense, and this would be a package that helps you be a good "commit citizen".
7573

76-
[cz-js]: https://github.com/commitizen/cz-cli
77-
7874
## How to handle revert commits?
7975

8076
```sh
8177
git revert --no-commit <SHA>
8278
git commit -m "revert: foo bar"
8379
```
8480

85-
## Why don't we use Pydantic?
81+
## Why don't we use [Pydantic](https://docs.pydantic.dev/)?
8682

8783
While Pydantic is a powerful and popular library for data validation, we intentionally avoid using it in this project to keep our dependency tree minimal and maintainable.
8884

@@ -98,7 +94,7 @@ In short, avoiding Pydantic helps us:
9894

9995
## I got `Exception [WinError 995] The I/O operation ...` error
10096

101-
This error was caused by a Python bug on Windows. It's been fixed by [this PR](https://github.com/python/cpython/pull/22017), and according to Python's changelog, [3.8.6rc1](https://docs.python.org/3.8/whatsnew/changelog.html#python-3-8-6-release-candidate-1) and [3.9.0rc2](https://docs.python.org/3.9/whatsnew/changelog.html#python-3-9-0-release-candidate-2) should be the accurate versions first contain this fix. In conclusion, upgrade your Python version might solve this issue.
97+
This error was caused by a Python bug on Windows. It's been fixed by [cpython #22017](https://github.com/python/cpython/pull/22017), and according to Python's changelog, [3.8.6rc1](https://docs.python.org/3.8/whatsnew/changelog.html#python-3-8-6-release-candidate-1) and [3.9.0rc2](https://docs.python.org/3.9/whatsnew/changelog.html#python-3-9-0-release-candidate-2) should be the accurate versions first contain this fix. In conclusion, upgrade your Python version might solve this issue.
10298

10399
More discussion can be found in issue [#318](https://github.com/commitizen-tools/commitizen/issues/318).
104100

@@ -162,3 +158,5 @@ ignored_tag_formats = [
162158
"v${major}.${minor}",
163159
]
164160
```
161+
162+
[cz-js]: https://github.com/commitizen/cz-cli

docs/features_wont_add.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
This page contains features that have been proposed or considered but won't be implemented in Commitizen.
2+
3+
For a comprehensive list, please refer to our [issue tracker](https://github.com/commitizen-tools/commitizen/issues?q=is:issue%20state:closed%20label:%22issue-status:%20wont-fix%22%20OR%20label:%22issue-status:%20wont-implement%22).
4+
5+
- Enable multiple locations of config file `.cz.*` [#955](https://github.com/commitizen-tools/commitizen/issues/955)
6+
- Create a flag to build the changelog from commits in multiple git repositories [#790](https://github.com/commitizen-tools/commitizen/issues/790)
7+
- Global Configuration [#597](https://github.com/commitizen-tools/commitizen/issues/597)

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ nav:
5555
- Developmental releases: "tutorials/dev_releases.md"
5656
- Monorepo support: "tutorials/monorepo_guidance.md"
5757
- FAQ: "faq.md"
58+
- Features we won't add: "features_wont_add.md"
5859
- Exit Codes: "exit_codes.md"
5960
- Third-Party Commitizen Templates: "third-party-commitizen.md"
6061
- Contributing: "contributing.md"

0 commit comments

Comments
 (0)