You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p><small><ahref="https://github.com/pawamoy/pytkdocs/compare/v0.2.1...v0.3.0">Compare with v0.2.1</a></small></p>
594
+
<h3id="bug-fixes">Bug Fixes</h3>
595
+
<ul>
596
+
<li>Fix parsing of <code>*args</code> and <code>**kwargs</code> (<ahref="https://github.com/pawamoy/pytkdocs/commit/b81c93eef2435f2ed1d70b4d7c3946caa564c59e">b81c93e</a> by adrienhenry). Related issues/PRs: <ahref="https://github.com/pawamoy/pytkdocs/issues/20">#20</a>, <ahref="https://github.com/pawamoy/pytkdocs/issues/21">#21</a></li>
597
+
</ul>
598
+
<h3id="features">Features</h3>
599
+
<ul>
600
+
<li>Support different indentations and complex markup in docstrings sections (<ahref="https://github.com/pawamoy/pytkdocs/commit/2f53082dbd2bcb72423d4aff0cb3bf4319476be7">2f53082</a> by Timothée Mazzucotelli). Related issues/PRs: <ahref="https://github.com/pawamoy/pytkdocs/issues/17">#17</a></li>
<li>Fork the repository <ahref="https://github.com/pawamoy/pytkdocs">on github.com</a>;</li>
424
467
<li>Clone it on your machine;</li>
425
-
<li>Go into the directory, and run <code>poetry install</code> to setup the development environment;</li>
468
+
<li>Go into the directory, and run <code>poetry install</code> to install all the dependencies into a new virtualenv.</li>
469
+
</ol>
470
+
<h2id="new-feature-or-bug-fix">New feature or bug fix</h2>
471
+
<ol>
426
472
<li>Create a new branch with <code>git checkout -b bug-fix-or-feature-name</code>;</li>
427
473
<li>Code!</li>
428
-
<li><strong>Write tests. Run them all.</strong> The commands to run the tests are:
429
-
<divclass="codehilite"><pre><span></span><code>poetry run pytest <spanclass="c1"># to run all tests sequentially</span>
474
+
<li><strong>Write tests. Run them all.</strong></li>
475
+
</ol>
476
+
<h2id="running-tests">Running tests</h2>
477
+
<p>The command to run the tests is:</p>
478
+
<divclass="highlight"><pre><span></span><code>make test
479
+
</code></pre></div>
480
+
<p>For more flexibility:</p>
481
+
<divclass="highlight"><pre><span></span><code>poetry run pytest <spanclass="c1"># to run all tests sequentially</span>
430
482
poetry run pytest -v <spanclass="c1"># to print one test per line</span>
431
483
poetry run pytest -n <spanclass="m">4</span><spanclass="c1"># to run tests in parallel (4 workers)</span>
432
484
poetry run pytest tests/test_api.py <spanclass="c1"># to run tests in a specific file</span>
433
-
</code></pre></div></li>
434
-
</ol>
485
+
</code></pre></div>
435
486
<p><code>pytest</code> provides the <code>-k</code> option to select tests based on their names:</p>
436
-
<divclass="codehilite"><pre><span></span><code>poetry run pytest -k <spanclass="s2">"api and remove"</span>
487
+
<divclass="highlight"><pre><span></span><code>poetry run pytest -k <spanclass="s2">"api and remove"</span>
437
488
poetry run pytest -k <spanclass="s2">"utils or stats"</span>
438
489
</code></pre></div>
439
490
<p>See the <ahref="https://docs.pytest.org/en/latest/example/markers.html#using-k-expr-to-select-tests-based-on-their-name">documentation for the <code>-k</code> option</a> for more examples.</p>
440
-
<p>A <ahref="Makefile">Makefile</a> is available for convenience: <code>make test</code>.
441
-
1. When the tests pass, commit
442
-
(make sure to have atomic commits and contextual commit messages!
443
-
<ahref="https://github.com/pawamoy/pytkdocs/compare">Check out this awesome blog post by Chris Beams for more information.</a>)
444
-
1. Push;
445
-
1. ...and finally, create a new <ahref="http://chris.beams.io/posts/git-commit/">pull/merge request</a>!
446
-
Make sure to follow the guidelines.</p>
491
+
<h2id="commits-messages">Commits messages</h2>
492
+
<p>Make sure to have atomic commits and contextual commit messages!
493
+
<ahref="http://chris.beams.io/posts/git-commit/">Check out this blog post by Chris Beams for more information</a>.</p>
494
+
<p>Commits messages must follow the <ahref="https://gist.github.com/stephenparish/9941e89d80e2bc58a153#format-of-the-commit-message">Angular style</a>:</p>
0 commit comments