Skip to content

Commit 071ff1a

Browse files
committed
Deploying to gh-pages from @ c0da2e6 🚀
1 parent 2d058e8 commit 071ff1a

File tree

3 files changed

+55
-39
lines changed

3 files changed

+55
-39
lines changed

config/bump/index.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2399,21 +2399,21 @@ <h2 id="version_files"><code>version_files</code><a class="headerlink" href="#ve
23992399
<p>For example, if the content of <code>setup.json</code> is:</p>
24002400
<!-- DEPENDENCY: repeated_version_number.json -->
24012401
<div class="highlight"><span class="filename">setup.json</span><pre><span></span><code><span class="p">{</span>
2402-
<span class="nt">&quot;name&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;magictool&quot;</span><span class="p">,</span>
2403-
<span class="nt">&quot;version&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;1.2.3&quot;</span><span class="p">,</span>
2404-
<span class="nt">&quot;dependencies&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
2405-
<span class="w"> </span><span class="nt">&quot;lodash&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;1.2.3&quot;</span>
2406-
<span class="p">}</span>
2402+
<span class="w"> </span><span class="nt">&quot;name&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;magictool&quot;</span><span class="p">,</span>
2403+
<span class="w"> </span><span class="nt">&quot;version&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;1.2.3&quot;</span><span class="p">,</span>
2404+
<span class="w"> </span><span class="nt">&quot;dependencies&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
2405+
<span class="w"> </span><span class="nt">&quot;lodash&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;1.2.3&quot;</span>
2406+
<span class="w"> </span><span class="p">}</span>
24072407
<span class="p">}</span>
24082408
</code></pre></div>
24092409
<p>After running <code>cz bump 2.0.0</code>, its content will be updated to:</p>
24102410
<div class="highlight"><span class="filename">setup.json</span><pre><span></span><code>{
2411-
&quot;name&quot;: &quot;magictool&quot;,
2412-
<span class="gd">- &quot;version&quot;: &quot;1.2.3&quot;,</span>
2413-
<span class="gi">+ &quot;version&quot;: &quot;2.0.0&quot;,</span>
2414-
&quot;dependencies&quot;: {
2415-
<span class="w"> </span> &quot;lodash&quot;: &quot;1.2.3&quot;
2416-
}
2411+
<span class="w"> </span> &quot;name&quot;: &quot;magictool&quot;,
2412+
<span class="gd">- &quot;version&quot;: &quot;1.2.3&quot;,</span>
2413+
<span class="gi">+ &quot;version&quot;: &quot;2.0.0&quot;,</span>
2414+
<span class="w"> </span> &quot;dependencies&quot;: {
2415+
<span class="w"> </span> &quot;lodash&quot;: &quot;1.2.3&quot;
2416+
<span class="w"> </span> }
24172417
}
24182418
</code></pre></div>
24192419
</div>

config/version_provider/index.html

Lines changed: 43 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2337,21 +2337,25 @@ <h2 id="built-in-providers">Built-in Providers<a class="headerlink" href="#built
23372337
<p>Commitizen includes several built-in version providers for common package management formats:</p>
23382338
<h3 id="commitizen-default"><code>commitizen</code> (Default)<a class="headerlink" href="#commitizen-default" title="Permanent link">&para;</a></h3>
23392339
<p>The default version provider stores and retrieves the version from your Commitizen configuration file (e.g., <code>pyproject.toml</code>, <code>.cz.toml</code>, etc.).</p>
2340-
<p><strong>Use when:</strong>
2341-
- You want to keep version management separate from your package manager
2342-
- Your project doesn't use a standard package manager
2343-
- You need maximum flexibility in version management</p>
2340+
<p><strong>Use when:</strong></p>
2341+
<ul>
2342+
<li>You want to keep version management separate from your package manager</li>
2343+
<li>Your project doesn't use a standard package manager</li>
2344+
<li>You need maximum flexibility in version management</li>
2345+
</ul>
23442346
<p><strong>Configuration:</strong>
23452347
<div class="highlight"><pre><span></span><code><span class="k">[tool.commitizen]</span>
23462348
<span class="n">version_provider</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">&quot;commitizen&quot;</span>
23472349
<span class="n">version</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">&quot;0.1.0&quot;</span><span class="w"> </span><span class="c1"># Required when using this provider</span>
23482350
</code></pre></div></p>
23492351
<h3 id="scm"><code>scm</code><a class="headerlink" href="#scm" title="Permanent link">&para;</a></h3>
23502352
<p>Fetches the version from Git tags using <code>git describe</code>. This provider <strong>only reads</strong> version information and never writes it back to files. It's designed to work with tools like <code>setuptools-scm</code> or other package manager <code>*-scm</code> plugins that derive version numbers from Git history.</p>
2351-
<p><strong>Use when:</strong>
2352-
- You're using <code>setuptools-scm</code> or similar tools
2353-
- You want version numbers derived from Git tags
2354-
- You don't want Commitizen to modify any files for version management</p>
2353+
<p><strong>Use when:</strong></p>
2354+
<ul>
2355+
<li>You're using <code>setuptools-scm</code> or similar tools</li>
2356+
<li>You want version numbers derived from Git tags</li>
2357+
<li>You don't want Commitizen to modify any files for version management</li>
2358+
</ul>
23552359
<p><strong>Configuration:</strong>
23562360
<div class="highlight"><pre><span></span><code><span class="k">[tool.commitizen]</span>
23572361
<span class="n">version_provider</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">&quot;scm&quot;</span>
@@ -2363,9 +2367,11 @@ <h3 id="scm"><code>scm</code><a class="headerlink" href="#scm" title="Permanent
23632367
</div>
23642368
<h3 id="pep621"><code>pep621</code><a class="headerlink" href="#pep621" title="Permanent link">&para;</a></h3>
23652369
<p>Manages version in <code>pyproject.toml</code> under the <code>project.version</code> field, following <a href="https://peps.python.org/pep-0621/">PEP 621</a> standards.</p>
2366-
<p><strong>Use when:</strong>
2367-
- You're using a modern Python project with PEP 621-compliant <code>pyproject.toml</code>
2368-
- You want version management integrated with your Python project metadata</p>
2370+
<p><strong>Use when:</strong></p>
2371+
<ul>
2372+
<li>You're using a modern Python project with PEP 621-compliant <code>pyproject.toml</code></li>
2373+
<li>You want version management integrated with your Python project metadata</li>
2374+
</ul>
23692375
<p><strong>Configuration:</strong>
23702376
<div class="highlight"><pre><span></span><code><span class="k">[tool.commitizen]</span>
23712377
<span class="n">version_provider</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">&quot;pep621&quot;</span>
@@ -2377,10 +2383,12 @@ <h3 id="pep621"><code>pep621</code><a class="headerlink" href="#pep621" title="P
23772383
</code></pre></div></p>
23782384
<h3 id="poetry"><code>poetry</code><a class="headerlink" href="#poetry" title="Permanent link">&para;</a></h3>
23792385
<p>Manages version in <code>pyproject.toml</code> under the <code>tool.poetry.version</code> field, which is used by the <a href="https://python-poetry.org/">Poetry</a> package manager. This approach is recommended only for users running Poetry versions earlier than 2.0 or relying on Poetry-specific features. For most users on Poetry 2.0 or later, it is recommended to use <code>pep621</code> instead. <a href="https://python-poetry.org/docs/main/managing-dependencies/">Read More</a></p>
2380-
<p><strong>Use when:</strong>
2381-
- You're using Poetry &lt; 2.0 as your Python package manager
2382-
- You're using Poetry &gt;= 2.0 as your Python package manager, but don't need poetry-specific features
2383-
- You want Commitizen to manage the version that Poetry uses</p>
2386+
<p><strong>Use when:</strong></p>
2387+
<ul>
2388+
<li>You're using Poetry &lt; 2.0 as your Python package manager</li>
2389+
<li>You're using Poetry &gt;= 2.0 as your Python package manager, but don't need poetry-specific features</li>
2390+
<li>You want Commitizen to manage the version that Poetry uses</li>
2391+
</ul>
23842392
<p><strong>Configuration:</strong>
23852393
<div class="highlight"><pre><span></span><code><span class="k">[tool.commitizen]</span>
23862394
<span class="n">version_provider</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">&quot;poetry&quot;</span>
@@ -2396,18 +2404,22 @@ <h3 id="uv"><code>uv</code><a class="headerlink" href="#uv" title="Permanent lin
23962404
<p class="admonition-title">Note</p>
23972405
<p>Even though uv follows PEP 621 format, <code>pep621</code> does not manage the version in <code>uv.lock</code>. <code>uv</code> is still suggested for uv users.</p>
23982406
</div>
2399-
<p><strong>Use when:</strong>
2400-
- You're using <code>uv</code> as your Python package manager
2401-
- You want version synchronization between <code>pyproject.toml</code> and <code>uv.lock</code></p>
2407+
<p><strong>Use when:</strong></p>
2408+
<ul>
2409+
<li>You're using <code>uv</code> as your Python package manager</li>
2410+
<li>You want version synchronization between <code>pyproject.toml</code> and <code>uv.lock</code></li>
2411+
</ul>
24022412
<p><strong>Configuration:</strong>
24032413
<div class="highlight"><pre><span></span><code><span class="k">[tool.commitizen]</span>
24042414
<span class="n">version_provider</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">&quot;uv&quot;</span>
24052415
</code></pre></div></p>
24062416
<h3 id="cargo"><code>cargo</code><a class="headerlink" href="#cargo" title="Permanent link">&para;</a></h3>
24072417
<p>Manages version in both <code>Cargo.toml</code> (<code>package.version</code>) and <code>Cargo.lock</code> (<code>package.version</code> for the matching package name). This ensures consistency between your Rust project's manifest and lock file.</p>
2408-
<p><strong>Use when:</strong>
2409-
- You're working with a Rust project using Cargo
2410-
- You want Commitizen to manage Rust package versions</p>
2418+
<p><strong>Use when:</strong></p>
2419+
<ul>
2420+
<li>You're working with a Rust project using Cargo</li>
2421+
<li>You want Commitizen to manage Rust package versions</li>
2422+
</ul>
24112423
<p><strong>Configuration:</strong>
24122424
<div class="highlight"><pre><span></span><code><span class="k">[tool.commitizen]</span>
24132425
<span class="n">version_provider</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">&quot;cargo&quot;</span>
@@ -2419,9 +2431,11 @@ <h3 id="cargo"><code>cargo</code><a class="headerlink" href="#cargo" title="Perm
24192431
</code></pre></div></p>
24202432
<h3 id="npm"><code>npm</code><a class="headerlink" href="#npm" title="Permanent link">&para;</a></h3>
24212433
<p>Manages version in <code>package.json</code> and optionally synchronizes with <code>package-lock.json</code> and <code>npm-shrinkwrap.json</code> if they exist.</p>
2422-
<p><strong>Use when:</strong>
2423-
- You're working with a Node.js/JavaScript project
2424-
- You want Commitizen to manage npm package versions</p>
2434+
<p><strong>Use when:</strong></p>
2435+
<ul>
2436+
<li>You're working with a Node.js/JavaScript project</li>
2437+
<li>You want Commitizen to manage npm package versions</li>
2438+
</ul>
24252439
<p><strong>Configuration:</strong>
24262440
<div class="highlight"><pre><span></span><code><span class="k">[tool.commitizen]</span>
24272441
<span class="n">version_provider</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">&quot;npm&quot;</span>
@@ -2434,9 +2448,11 @@ <h3 id="npm"><code>npm</code><a class="headerlink" href="#npm" title="Permanent
24342448
</code></pre></div></p>
24352449
<h3 id="composer"><code>composer</code><a class="headerlink" href="#composer" title="Permanent link">&para;</a></h3>
24362450
<p>Manages version in <code>composer.json</code> under the <code>version</code> field, used by PHP's Composer package manager.</p>
2437-
<p><strong>Use when:</strong>
2438-
- You're working with a PHP project using Composer
2439-
- You want Commitizen to manage Composer package versions</p>
2451+
<p><strong>Use when:</strong></p>
2452+
<ul>
2453+
<li>You're working with a PHP project using Composer</li>
2454+
<li>You want Commitizen to manage Composer package versions</li>
2455+
</ul>
24402456
<p><strong>Configuration:</strong>
24412457
<div class="highlight"><pre><span></span><code><span class="k">[tool.commitizen]</span>
24422458
<span class="n">version_provider</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">&quot;composer&quot;</span>

search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)