@@ -1779,137 +1779,206 @@
1779
1779
< h1 id ="configuration "> Configuration< a class ="headerlink " href ="#configuration " title ="Permanent link "> ¶</ a > </ h1 >
1780
1780
< h2 id ="settings "> Settings< a class ="headerlink " href ="#settings " title ="Permanent link "> ¶</ a > </ h2 >
1781
1781
< h3 id ="name "> < code > name</ code > < a class ="headerlink " href ="#name " title ="Permanent link "> ¶</ a > </ h3 >
1782
- < p > Type: < code > str</ code > </ p >
1783
- < p > Default: < code > "cz_conventional_commits"</ code > </ p >
1784
- < p > Name of the committing rules to use</ p >
1782
+ < ul >
1783
+ < li > Type: < code > str</ code > </ li >
1784
+ < li > Default: < code > "cz_conventional_commits"</ code > </ li >
1785
+ </ ul >
1786
+ < p > Name of the committing rules to use.</ p >
1785
1787
< h3 id ="version "> < code > version</ code > < a class ="headerlink " href ="#version " title ="Permanent link "> ¶</ a > </ h3 >
1786
- < p > Type: < code > str</ code > </ p >
1787
- < p > Default: < code > None</ code > </ p >
1788
- < p > Current version. Example: "0.1.2". Required if you use < code > version_provider = "commitizen"</ code > .</ p >
1788
+ < ul >
1789
+ < li > Type: < code > str</ code > </ li >
1790
+ < li > Default: < code > None</ code > </ li >
1791
+ </ ul >
1792
+ < p > Current version. Example: < code > "0.1.2"</ code > . Required if you use < code > version_provider = "commitizen"</ code > .</ p >
1789
1793
< h3 id ="version_files "> < code > version_files</ code > < a class ="headerlink " href ="#version_files " title ="Permanent link "> ¶</ a > </ h3 >
1790
- < p > Type: < code > list</ code > </ p >
1791
- < p > Default: < code > [ ]</ code > </ p >
1794
+ < ul >
1795
+ < li > Type: < code > list</ code > </ li >
1796
+ < li > Default: < code > []</ code > </ li >
1797
+ </ ul >
1792
1798
< p > Files (or glob patterns) where the version will be updated. A pattern to match a line, can also be specified, separated by < code > :</ code > < a href ="../commands/bump/#version_files "> Read more</ a > </ p >
1793
1799
< h3 id ="version_provider "> < code > version_provider</ code > < a class ="headerlink " href ="#version_provider " title ="Permanent link "> ¶</ a > </ h3 >
1794
- < p > Type: < code > str</ code > </ p >
1795
- < p > Default: < code > commitizen</ code > </ p >
1796
- < p > Version provider used to read and write version < a href ="#version-providers "> Read more</ a > </ p >
1800
+ < ul >
1801
+ < li > Type: < code > str</ code > </ li >
1802
+ < li > Default: < code > commitizen</ code > </ li >
1803
+ </ ul >
1804
+ < p > Version provider used to read and write version. < a href ="#version-providers "> Read more</ a > </ p >
1797
1805
< h3 id ="version_scheme "> < code > version_scheme</ code > < a class ="headerlink " href ="#version_scheme " title ="Permanent link "> ¶</ a > </ h3 >
1798
- < p > Type: < code > str</ code > </ p >
1799
- < p > Default: < code > pep440</ code > </ p >
1800
- < p > Select a version scheme from the following options [< code > pep440</ code > , < code > semver</ code > , < code > semver2</ code > ].
1801
- Useful for non-python projects. < a href ="../commands/bump/#-version-scheme "> Read more</ a > </ p >
1806
+ < ul >
1807
+ < li > Type: < code > str</ code > </ li >
1808
+ < li > Default: < code > pep440</ code > </ li >
1809
+ </ ul >
1810
+ < p > Select a version scheme from the following options:</ p >
1811
+ < ul >
1812
+ < li > < code > pep440</ code > </ li >
1813
+ < li > < code > semver</ code > </ li >
1814
+ < li > < code > semver2</ code > </ li >
1815
+ </ ul >
1816
+ < p > Useful for non-python projects. < a href ="../commands/bump/#-version-scheme "> Read more</ a > </ p >
1802
1817
< h3 id ="tag_format "> < code > tag_format</ code > < a class ="headerlink " href ="#tag_format " title ="Permanent link "> ¶</ a > </ h3 >
1803
- < p > Type: < code > str</ code > </ p >
1804
- < p > Default: < code > $version</ code > </ p >
1818
+ < ul >
1819
+ < li > Type: < code > str</ code > </ li >
1820
+ < li > Default: < code > $version</ code > </ li >
1821
+ </ ul >
1805
1822
< p > Format for the git tag, useful for old projects, that use a convention like < code > "v1.2.1"</ code > . < a href ="../commands/bump/#tag_format "> Read more</ a > </ p >
1806
1823
< h3 id ="legacy_tag_formats "> < code > legacy_tag_formats</ code > < a class ="headerlink " href ="#legacy_tag_formats " title ="Permanent link "> ¶</ a > </ h3 >
1807
- < p > Type: < code > list</ code > </ p >
1808
- < p > Default: < code > [ ]</ code > </ p >
1824
+ < ul >
1825
+ < li > Type: < code > list</ code > </ li >
1826
+ < li > Default: < code > []</ code > </ li >
1827
+ </ ul >
1809
1828
< p > Legacy git tag formats, useful for old projects that changed tag format.
1810
1829
Tags matching those formats will be recognized as version tags and be included in the changelog.
1811
1830
Each entry uses the syntax as < a href ="#tag_format "> < code > tag_format</ code > </ a > . < a href ="../commands/bump/#tag_format "> Read more</ a > </ p >
1812
1831
< h3 id ="ignored_tag_formats "> < code > ignored_tag_formats</ code > < a class ="headerlink " href ="#ignored_tag_formats " title ="Permanent link "> ¶</ a > </ h3 >
1813
- < p > Type: < code > list</ code > </ p >
1814
- < p > Default: < code > [ ]</ code > </ p >
1832
+ < ul >
1833
+ < li > Type: < code > list</ code > </ li >
1834
+ < li > Default: < code > []</ code > </ li >
1835
+ </ ul >
1815
1836
< p > Tags matching those formats will be totally ignored and won't raise a warning.
1816
1837
Each entry uses the syntax as < a href ="#tag_format "> < code > tag_format</ code > </ a > with the addition of < code > *</ code >
1817
1838
that will match everything (non-greedy). < a href ="../commands/bump/#tag_format "> Read more</ a > </ p >
1818
1839
< h3 id ="update_changelog_on_bump "> < code > update_changelog_on_bump</ code > < a class ="headerlink " href ="#update_changelog_on_bump " title ="Permanent link "> ¶</ a > </ h3 >
1819
- < p > Type: < code > bool</ code > </ p >
1820
- < p > Default: < code > false</ code > </ p >
1821
- < p > Create changelog when running < code > cz bump</ code > </ p >
1840
+ < ul >
1841
+ < li > Type: < code > bool</ code > </ li >
1842
+ < li > Default: < code > False</ code > </ li >
1843
+ </ ul >
1844
+ < p > Create changelog when running < code > cz bump</ code > .</ p >
1822
1845
< h3 id ="gpg_sign "> < code > gpg_sign</ code > < a class ="headerlink " href ="#gpg_sign " title ="Permanent link "> ¶</ a > </ h3 >
1823
- < p > Type: < code > bool</ code > </ p >
1824
- < p > Default: < code > false</ code > </ p >
1846
+ < ul >
1847
+ < li > Type: < code > bool</ code > </ li >
1848
+ < li > Default: < code > False</ code > </ li >
1849
+ </ ul >
1825
1850
< p > Use gpg signed tags instead of lightweight tags.</ p >
1826
1851
< h3 id ="annotated_tag "> < code > annotated_tag</ code > < a class ="headerlink " href ="#annotated_tag " title ="Permanent link "> ¶</ a > </ h3 >
1827
- < p > Type: < code > bool</ code > </ p >
1828
- < p > Default: < code > false</ code > </ p >
1852
+ < ul >
1853
+ < li > Type: < code > bool</ code > </ li >
1854
+ < li > Default: < code > False</ code > </ li >
1855
+ </ ul >
1829
1856
< p > Use annotated tags instead of lightweight tags. < a href ="https://stackoverflow.com/a/11514139/2047185 "> See difference</ a > </ p >
1830
1857
< h3 id ="bump_message "> < code > bump_message</ code > < a class ="headerlink " href ="#bump_message " title ="Permanent link "> ¶</ a > </ h3 >
1831
- < p > Type: < code > str</ code > </ p >
1832
- < p > Default: < code > None</ code > </ p >
1833
- < p > Create custom commit message, useful to skip CI. < a href ="../commands/bump/#bump_message "> Read more</ a > </ p >
1858
+ < ul >
1859
+ < li > Type: < code > str</ code > </ li >
1860
+ < li > Default: < code > None</ code > </ li >
1861
+ </ ul >
1862
+ < p > Create custom commit message. Useful to skip CI. < a href ="../commands/bump/#bump_message "> Read more</ a > </ p >
1834
1863
< h3 id ="retry_after_failure "> < code > retry_after_failure</ code > < a class ="headerlink " href ="#retry_after_failure " title ="Permanent link "> ¶</ a > </ h3 >
1835
- < p > Type: < code > bool</ code > </ p >
1836
- < p > Default: < code > false</ code > </ p >
1864
+ < ul >
1865
+ < li > Type: < code > bool</ code > </ li >
1866
+ < li > Default: < code > False</ code > </ li >
1867
+ </ ul >
1837
1868
< p > Automatically retry failed commit when running < code > cz commit</ code > . < a href ="../commands/commit/#retry "> Read more</ a > </ p >
1838
1869
< h3 id ="allow_abort "> < code > allow_abort</ code > < a class ="headerlink " href ="#allow_abort " title ="Permanent link "> ¶</ a > </ h3 >
1839
- < p > Type: < code > bool</ code > </ p >
1840
- < p > Default: < code > false</ code > </ p >
1841
- < p > Disallow empty commit messages, useful in CI. < a href ="../commands/check/#allow-abort "> Read more</ a > </ p >
1870
+ < ul >
1871
+ < li > Type: < code > bool</ code > </ li >
1872
+ < li > Default: < code > False</ code > </ li >
1873
+ </ ul >
1874
+ < p > Disallow empty commit messages. Useful in CI. < a href ="../commands/check/#allow-abort "> Read more</ a > </ p >
1842
1875
< h3 id ="allowed_prefixes "> < code > allowed_prefixes</ code > < a class ="headerlink " href ="#allowed_prefixes " title ="Permanent link "> ¶</ a > </ h3 >
1843
- < p > Type: < code > list</ code >
1844
- Default: < code > [ "Merge", "Revert", "Pull request", "fixup!", "squash!"]</ code >
1845
- Allow some prefixes and do not try to match the regex when checking the message < a href ="../commands/check/#allowed-prefixes "> Read more</ a > </ p >
1876
+ < ul >
1877
+ < li > Type: < code > list</ code > </ li >
1878
+ < li > Default: < code > ["Merge", "Revert", "Pull request", "fixup!", "squash!"]</ code > </ li >
1879
+ </ ul >
1880
+ < p > List of prefixes that commitizen ignores when verifying messages. < a href ="../commands/check/#allowed-prefixes "> Read more</ a > </ p >
1846
1881
< h3 id ="changelog_file "> < code > changelog_file</ code > < a class ="headerlink " href ="#changelog_file " title ="Permanent link "> ¶</ a > </ h3 >
1847
- < p > Type: < code > str</ code > </ p >
1848
- < p > Default: < code > CHANGELOG.md</ code > </ p >
1882
+ < ul >
1883
+ < li > Type: < code > str</ code > </ li >
1884
+ < li > Default: < code > CHANGELOG.md</ code > </ li >
1885
+ </ ul >
1849
1886
< p > Filename of exported changelog</ p >
1850
1887
< h3 id ="changelog_format "> < code > changelog_format</ code > < a class ="headerlink " href ="#changelog_format " title ="Permanent link "> ¶</ a > </ h3 >
1851
- < p > Type: < code > str</ code > </ p >
1852
- < p > Default: None</ p >
1853
- < p > Format used to parse and generate the changelog, If not specified, guessed from < a href ="#changelog_file "> < code > changelog_file</ code > </ a > .</ p >
1888
+ < ul >
1889
+ < li > Type: < code > str</ code > </ li >
1890
+ < li > Default: < code > None</ code > </ li >
1891
+ </ ul >
1892
+ < p > Format used to parse and generate the changelog. If not specified, guessed from < a href ="#changelog_file "> < code > changelog_file</ code > </ a > .</ p >
1854
1893
< h3 id ="changelog_incremental "> < code > changelog_incremental</ code > < a class ="headerlink " href ="#changelog_incremental " title ="Permanent link "> ¶</ a > </ h3 >
1855
- < p > Type: < code > bool</ code > </ p >
1856
- < p > Default: < code > false</ code > </ p >
1857
- < p > Update changelog with the missing versions. This is good if you don't want to replace previous versions in the file. Note: when doing < code > cz bump --changelog</ code > this is automatically set to < code > true</ code > </ p >
1894
+ < ul >
1895
+ < li > Type: < code > bool</ code > </ li >
1896
+ < li > Default: < code > False</ code > </ li >
1897
+ </ ul >
1898
+ < p > Update changelog with the missing versions. This is good if you don't want to replace previous versions in the file.</ p >
1899
+ < div class ="admonition note ">
1900
+ < p class ="admonition-title "> Note</ p >
1901
+ < p > When doing < code > cz bump --changelog</ code > this is automatically set to < code > True</ code > </ p >
1902
+ </ div >
1858
1903
< h3 id ="changelog_start_rev "> < code > changelog_start_rev</ code > < a class ="headerlink " href ="#changelog_start_rev " title ="Permanent link "> ¶</ a > </ h3 >
1859
- < p > Type: < code > str</ code > </ p >
1860
- < p > Default: < code > None</ code > </ p >
1904
+ < ul >
1905
+ < li > Type: < code > str</ code > </ li >
1906
+ < li > Default: < code > None</ code > </ li >
1907
+ </ ul >
1861
1908
< p > Start from a given git rev to generate the changelog</ p >
1862
1909
< h3 id ="changelog_merge_prerelease "> < code > changelog_merge_prerelease</ code > < a class ="headerlink " href ="#changelog_merge_prerelease " title ="Permanent link "> ¶</ a > </ h3 >
1863
- < p > Type: < code > bool</ code > </ p >
1864
- < p > Default: < code > false</ code > </ p >
1910
+ < ul >
1911
+ < li > Type: < code > bool</ code > </ li >
1912
+ < li > Default: < code > False</ code > </ li >
1913
+ </ ul >
1865
1914
< p > Collect all changes of prerelease versions into the next non-prerelease version when creating the changelog.</ p >
1866
1915
< h3 id ="style "> < code > style</ code > < a class ="headerlink " href ="#style " title ="Permanent link "> ¶</ a > </ h3 >
1867
- < p > Type: < code > list</ code > </ p >
1868
- < p > see above</ p >
1916
+ < ul >
1917
+ < li > Type: < code > list</ code > </ li >
1918
+ < li > Default: < code > []</ code > </ li >
1919
+ </ ul >
1869
1920
< p > Style for the prompts (It will merge this value with default style.) < a href ="https://github.com/tmbo/questionary#additional-features "> See More (Styling your prompts with your favorite colors)</ a > </ p >
1870
1921
< h3 id ="customize "> < code > customize</ code > < a class ="headerlink " href ="#customize " title ="Permanent link "> ¶</ a > </ h3 >
1871
- < p > Type: < code > dict</ code > </ p >
1872
- < p > Default: < code > None</ code > </ p >
1922
+ < ul >
1923
+ < li > Type: < code > dict</ code > </ li >
1924
+ < li > Default: < code > None</ code > </ li >
1925
+ </ ul >
1873
1926
< p > < strong > This is only supported when config through < code > toml</ code > .</ strong > Custom rules for committing and bumping. < a href ="../customization/ "> Read more</ a > </ p >
1874
1927
< h3 id ="use_shortcuts "> < code > use_shortcuts</ code > < a class ="headerlink " href ="#use_shortcuts " title ="Permanent link "> ¶</ a > </ h3 >
1875
- < p > Type: < code > bool</ code > </ p >
1876
- < p > Default: < code > false</ code > </ p >
1928
+ < ul >
1929
+ < li > Type: < code > bool</ code > </ li >
1930
+ < li > Default: < code > False</ code > </ li >
1931
+ </ ul >
1877
1932
< p > If enabled, Commitizen will show keyboard shortcuts when selecting from a list. Define a < code > key</ code > for each of your choices to set the key. < a href ="../customization/#shortcut-keys "> Read more</ a > </ p >
1878
1933
< h3 id ="major_version_zero "> < code > major_version_zero</ code > < a class ="headerlink " href ="#major_version_zero " title ="Permanent link "> ¶</ a > </ h3 >
1879
- < p > Type: < code > bool</ code > </ p >
1880
- < p > Default: < code > false</ code > </ p >
1881
- < p > When true, breaking changes on a < code > 0.x</ code > will remain as a < code > 0.x</ code > version. On < code > false</ code > , a breaking change will bump a < code > 0.x</ code > version to < code > 1.0</ code > . < a href ="../commands/bump/#-major-version-zero "> Read more</ a > </ p >
1934
+ < ul >
1935
+ < li > Type: < code > bool</ code > </ li >
1936
+ < li > Default: < code > False</ code > </ li >
1937
+ </ ul >
1938
+ < p > If enabled, breaking changes on a < code > 0.x</ code > will remain as a < code > 0.x</ code > version. Otherwise, a breaking change will bump a < code > 0.x</ code > version to < code > 1.0</ code > . < a href ="../commands/bump/#-major-version-zero "> Read more</ a > </ p >
1882
1939
< h3 id ="prerelease_offset "> < code > prerelease_offset</ code > < a class ="headerlink " href ="#prerelease_offset " title ="Permanent link "> ¶</ a > </ h3 >
1883
- < p > Type: < code > int</ code > </ p >
1884
- < p > Default: < code > 0</ code > </ p >
1885
- < p > In some circumstances, a prerelease cannot start with a 0, e.g. in an embedded project individual characters are encoded as bytes. This can be done by specifying an offset from which to start counting. < a href ="../commands/bump/#prerelease_offset "> Read more</ a > </ p >
1940
+ < ul >
1941
+ < li > Type: < code > int</ code > </ li >
1942
+ < li > Default: < code > 0</ code > </ li >
1943
+ </ ul >
1944
+ < p > In some circumstances, a prerelease cannot start with < code > 0</ code > -for example, in embedded projects where individual characters are encoded as bytes. You can specify an offset from which to start counting. < a href ="../commands/bump/#prerelease_offset "> Read more</ a > </ p >
1886
1945
< h3 id ="pre_bump_hooks "> < code > pre_bump_hooks</ code > < a class ="headerlink " href ="#pre_bump_hooks " title ="Permanent link "> ¶</ a > </ h3 >
1887
- < p > Type: < code > list[str]</ code > </ p >
1888
- < p > Default: < code > []</ code > </ p >
1946
+ < ul >
1947
+ < li > Type: < code > list[str]</ code > </ li >
1948
+ < li > Default: < code > []</ code > </ li >
1949
+ </ ul >
1889
1950
< p > Calls the hook scripts < strong > before</ strong > bumping version. < a href ="../commands/bump/#pre_bump_hooks "> Read more</ a > </ p >
1890
1951
< h3 id ="post_bump_hooks "> < code > post_bump_hooks</ code > < a class ="headerlink " href ="#post_bump_hooks " title ="Permanent link "> ¶</ a > </ h3 >
1891
- < p > Type: < code > list[str]</ code > </ p >
1892
- < p > Default: < code > []</ code > </ p >
1952
+ < ul >
1953
+ < li > Type: < code > list[str]</ code > </ li >
1954
+ < li > Default: < code > []</ code > </ li >
1955
+ </ ul >
1893
1956
< p > Calls the hook scripts < strong > after</ strong > bumping the version. < a href ="../commands/bump/#post_bump_hooks "> Read more</ a > </ p >
1894
1957
< h3 id ="encoding "> < code > encoding</ code > < a class ="headerlink " href ="#encoding " title ="Permanent link "> ¶</ a > </ h3 >
1895
- < p > Type: < code > str</ code > </ p >
1896
- < p > Default: < code > utf-8</ code > </ p >
1958
+ < ul >
1959
+ < li > Type: < code > str</ code > </ li >
1960
+ < li > Default: < code > "utf-8"</ code > </ li >
1961
+ </ ul >
1897
1962
< p > Sets the character encoding to be used when parsing commit messages. < a href ="../tutorials/writing_commits/#writing-commits "> Read more</ a > </ p >
1898
1963
< h3 id ="template "> < code > template</ code > < a class ="headerlink " href ="#template " title ="Permanent link "> ¶</ a > </ h3 >
1899
- < p > Type: < code > str</ code > </ p >
1900
- < p > Default: < code > None</ code > (provided by plugin)</ p >
1964
+ < ul >
1965
+ < li > Type: < code > str</ code > </ li >
1966
+ < li > Default: < code > None</ code > (provided by plugin)</ li >
1967
+ </ ul >
1901
1968
< p > Provide custom changelog jinja template path relative to the current working directory. < a href ="../customization/#customizing-the-changelog-template "> Read more</ a > </ p >
1902
1969
< h3 id ="extras "> < code > extras</ code > < a class ="headerlink " href ="#extras " title ="Permanent link "> ¶</ a > </ h3 >
1903
- < p > Type: < code > dict[str, Any]</ code > </ p >
1904
- < p > Default: < code > {}</ code > </ p >
1970
+ < ul >
1971
+ < li > Type: < code > dict[str, Any]</ code > </ li >
1972
+ < li > Default: < code > {}</ code > </ li >
1973
+ </ ul >
1905
1974
< p > Provide extra variables to the changelog template. < a href ="../customization/#customizing-the-changelog-template "> Read more</ a > </ p >
1906
1975
< h2 id ="configuration-file "> Configuration file< a class ="headerlink " href ="#configuration-file " title ="Permanent link "> ¶</ a > </ h2 >
1907
1976
< h3 id ="pyprojecttoml-cztoml-or-cztoml "> < code > pyproject.toml</ code > , < code > .cz.toml</ code > or < code > cz.toml</ code > < a class ="headerlink " href ="#pyprojecttoml-cztoml-or-cztoml " title ="Permanent link "> ¶</ a > </ h3 >
1908
1977
< p > Default and recommended configuration format for a project.
1909
1978
For a < strong > python</ strong > project, we recommend adding an entry to your < code > pyproject.toml</ code > .
1910
1979
You can also create a < code > .cz.toml</ code > or < code > cz.toml</ code > file at the root of your project folder.</ p >
1911
1980
< p > Example configuration:</ p >
1912
- < div class ="highlight "> < pre > < span > </ span > < code > < span class ="k "> [tool.commitizen]</ span >
1981
+ < div class ="highlight "> < span class =" filename " > .cz.toml </ span > < pre > < span > </ span > < code > < span class ="k "> [tool.commitizen]</ span >
1913
1982
< span class ="n "> name</ span > < span class ="w "> </ span > < span class ="o "> =</ span > < span class ="w "> </ span > < span class ="s2 "> "cz_conventional_commits"</ span >
1914
1983
< span class ="n "> version</ span > < span class ="w "> </ span > < span class ="o "> =</ span > < span class ="w "> </ span > < span class ="s2 "> "0.1.0"</ span >
1915
1984
< span class ="n "> version_files</ span > < span class ="w "> </ span > < span class ="o "> =</ span > < span class ="w "> </ span > < span class ="p "> [</ span >
@@ -1932,7 +2001,7 @@ <h3 id="pyprojecttoml-cztoml-or-cztoml"><code>pyproject.toml</code>, <code>.cz.t
1932
2001
</ code > </ pre > </ div >
1933
2002
< h3 id ="czjson-or-czjson "> < code > .cz.json</ code > or < code > cz.json</ code > < a class ="headerlink " href ="#czjson-or-czjson " title ="Permanent link "> ¶</ a > </ h3 >
1934
2003
< p > Commitizen has support for JSON configuration. Recommended for < code > NodeJS</ code > projects.</ p >
1935
- < div class ="highlight "> < pre > < span > </ span > < code > < span class ="p "> {</ span >
2004
+ < div class ="highlight "> < span class =" filename " > .cz.json </ span > < pre > < span > </ span > < code > < span class ="p "> {</ span >
1936
2005
< span class ="w "> </ span > < span class ="nt "> "commitizen"</ span > < span class ="p "> :</ span > < span class ="w "> </ span > < span class ="p "> {</ span >
1937
2006
< span class ="w "> </ span > < span class ="nt "> "name"</ span > < span class ="p "> :</ span > < span class ="w "> </ span > < span class ="s2 "> "cz_conventional_commits"</ span > < span class ="p "> ,</ span >
1938
2007
< span class ="w "> </ span > < span class ="nt "> "version"</ span > < span class ="p "> :</ span > < span class ="w "> </ span > < span class ="s2 "> "0.1.0"</ span > < span class ="p "> ,</ span >
@@ -1954,7 +2023,7 @@ <h3 id="czjson-or-czjson"><code>.cz.json</code> or <code>cz.json</code><a class=
1954
2023
</ code > </ pre > </ div >
1955
2024
< h3 id ="czyaml-or-czyaml "> < code > .cz.yaml</ code > or < code > cz.yaml</ code > < a class ="headerlink " href ="#czyaml-or-czyaml " title ="Permanent link "> ¶</ a > </ h3 >
1956
2025
< p > YAML configuration is supported by Commitizen. Recommended for < code > Go</ code > , < code > ansible</ code > , or even < code > helm</ code > charts projects.</ p >
1957
- < div class ="highlight "> < pre > < span > </ span > < code > < span class ="nt "> commitizen</ span > < span class ="p "> :</ span >
2026
+ < div class ="highlight "> < span class =" filename " > .cz.yaml </ span > < pre > < span > </ span > < code > < span class ="nt "> commitizen</ span > < span class ="p "> :</ span >
1958
2027
< span class ="w "> </ span > < span class ="nt "> name</ span > < span class ="p "> :</ span > < span class ="w "> </ span > < span class ="l l-Scalar l-Scalar-Plain "> cz_conventional_commits</ span >
1959
2028
< span class ="w "> </ span > < span class ="nt "> version</ span > < span class ="p "> :</ span > < span class ="w "> </ span > < span class ="l l-Scalar l-Scalar-Plain "> 0.1.0</ span >
1960
2029
< span class ="w "> </ span > < span class ="nt "> version_files</ span > < span class ="p "> :</ span >
@@ -2039,7 +2108,7 @@ <h2 id="version-providers">Version providers<a class="headerlink" href="#version
2039
2108
</ code > </ pre > </ div >
2040
2109
< h3 id ="custom-version-provider "> Custom version provider< a class ="headerlink " href ="#custom-version-provider " title ="Permanent link "> ¶</ a > </ h3 >
2041
2110
< p > You can add your own version provider by extending < code > VersionProvider</ code > and exposing it on the < code > commitizen.provider</ code > entrypoint.</ p >
2042
- < p > Here is a quick example of a < code > my-provider </ code > provider reading and writing version in a < code > VERSION</ code > file.</ p >
2111
+ < p > Here is a quick example of a provider < code > my_provider.py </ code > , reading and writing version in a < code > VERSION</ code > file.</ p >
2043
2112
< div class ="highlight "> < span class ="filename "> my_provider.py</ span > < pre > < span > </ span > < code > < span class ="kn "> from</ span > < span class ="w "> </ span > < span class ="nn "> pathlib</ span > < span class ="w "> </ span > < span class ="kn "> import</ span > < span class ="n "> Path</ span >
2044
2113
< span class ="kn "> from</ span > < span class ="w "> </ span > < span class ="nn "> commitizen.providers</ span > < span class ="w "> </ span > < span class ="kn "> import</ span > < span class ="n "> VersionProvider</ span >
2045
2114
0 commit comments