Skip to content

Commit fd73531

Browse files
author
github-actions
committed
Docs build 2024-06-08
1 parent 8c29898 commit fd73531

File tree

8 files changed

+40
-28
lines changed

8 files changed

+40
-28
lines changed

en/next/_sources/api/operations.md.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ yield StringCommand("echo", "Shell!", _sudo=True)
4040
Operations can also call other operations using ``yield from`` syntax:
4141

4242
```py
43-
yield from files.file(
43+
yield from files.file._inner(
4444
path="/some/file",
4545
...,
4646
)

en/next/_sources/contributing.md.txt

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Third party pull requests help expand pyinfra's functionality and are essential
1313

1414
## Branches
1515

16-
+ There is a branch per major version, ie `2.x`, that tracks the latest release of that version
16+
+ There is a branch per major version, ie `3.x`, that tracks the latest release of that version
1717
+ Changes should generally be based off the latest major branch, unless fixing an old version
1818

1919
## Dev Setup
@@ -30,15 +30,27 @@ cd pyinfra
3030
pip install -e '.[dev]'
3131
```
3232

33-
## Tests
33+
### Code Style & Type Checking
3434

35-
GitHub will run all the test suites as part of any pull requests, here's how you can run them locally:
35+
Code style is enforced via Black, isort and flake8. Types are checked with mypy currently, and pyright is recommended for local development though currently optional. There is a script to run the linting & type-checking:
3636

37-
### Unit Tests
37+
```sh
38+
scripts/dev-lint.sh
39+
```
40+
41+
### Tests
42+
43+
GitHub will run all the test suites as part of any pull requests. There's a handy script that runs the unit tests:
44+
45+
```sh
46+
scripts/dev-test.sh
47+
```
48+
49+
#### Unit Tests
3850

3951
Use `pytest` to run the unit tests, or `pytest --cov` to run with coverage. Pull requests are expected to be tested and not drop overall project coverage by >1%.
4052

41-
### End to End Tests
53+
#### End to End Tests
4254

4355
The end to end tests are also executed via `pytest` but not selected by default, options/usage:
4456

@@ -64,7 +76,3 @@ To view ([localhost:8000](http://localhost:8000)):
6476
```sh
6577
python -m http.server -d docs/build/
6678
```
67-
68-
## Code Style
69-
70-
Code is linted using `flake8` and uses the `black` / `isort` codestyles. To check you can just run `flake8` from the root directory.

en/next/_sources/getting-started.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This guide should help describe the basics of deploying stuff with pyinfra. Star
55

66
.. code:: bash
77
8-
pip install pyinfra
8+
pip install pyinfra --pre
99
1010
To do something with pyinfra you need two things:
1111

en/next/api/operations.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ <h3>Output: commands<a class="headerlink" href="#output-commands" title="Permali
183183
</pre></div>
184184
</div>
185185
<p>Operations can also call other operations using <code class="docutils literal notranslate"><span class="pre">yield</span> <span class="pre">from</span></code> syntax:</p>
186-
<div class="highlight-py notranslate"><div class="highlight"><pre><span></span><span class="k">yield from</span> <span class="n">files</span><span class="o">.</span><span class="n">file</span><span class="p">(</span>
186+
<div class="highlight-py notranslate"><div class="highlight"><pre><span></span><span class="k">yield from</span> <span class="n">files</span><span class="o">.</span><span class="n">file</span><span class="o">.</span><span class="n">_inner</span><span class="p">(</span>
187187
<span class="n">path</span><span class="o">=</span><span class="s2">&quot;/some/file&quot;</span><span class="p">,</span>
188188
<span class="o">...</span><span class="p">,</span>
189189
<span class="p">)</span>

en/next/contributing.html

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,12 @@ <h3>Navigation</h3>
114114
<li class="toctree-l1 current"><a class="current reference internal" href="#">Contributing</a><ul>
115115
<li class="toctree-l2"><a class="reference internal" href="#guides">Guides</a></li>
116116
<li class="toctree-l2"><a class="reference internal" href="#branches">Branches</a></li>
117-
<li class="toctree-l2"><a class="reference internal" href="#dev-setup">Dev Setup</a></li>
118-
<li class="toctree-l2"><a class="reference internal" href="#tests">Tests</a><ul>
119-
<li class="toctree-l3"><a class="reference internal" href="#unit-tests">Unit Tests</a></li>
120-
<li class="toctree-l3"><a class="reference internal" href="#end-to-end-tests">End to End Tests</a></li>
117+
<li class="toctree-l2"><a class="reference internal" href="#dev-setup">Dev Setup</a><ul>
118+
<li class="toctree-l3"><a class="reference internal" href="#code-style-type-checking">Code Style &amp; Type Checking</a></li>
119+
<li class="toctree-l3"><a class="reference internal" href="#tests">Tests</a></li>
121120
</ul>
122121
</li>
123122
<li class="toctree-l2"><a class="reference internal" href="#generate-documentation">Generate Documentation</a></li>
124-
<li class="toctree-l2"><a class="reference internal" href="#code-style">Code Style</a></li>
125123
</ul>
126124
</li>
127125
<li class="toctree-l1"><a class="reference internal" href="compatibility.html">Compatibility</a></li>
@@ -161,7 +159,7 @@ <h2>Guides<a class="headerlink" href="#guides" title="Permalink to this heading"
161159
<div class="section" id="branches">
162160
<h2>Branches<a class="headerlink" href="#branches" title="Permalink to this heading"></a></h2>
163161
<ul class="simple">
164-
<li>There is a branch per major version, ie <code class="docutils literal notranslate"><span class="pre">2.x</span></code>, that tracks the latest release of that version</li>
162+
<li>There is a branch per major version, ie <code class="docutils literal notranslate"><span class="pre">3.x</span></code>, that tracks the latest release of that version</li>
165163
<li>Changes should generally be based off the latest major branch, unless fixing an old version</li>
166164
</ul>
167165
</div>
@@ -178,16 +176,25 @@ <h2>Dev Setup<a class="headerlink" href="#dev-setup" title="Permalink to this he
178176
pip<span class="w"> </span>install<span class="w"> </span>-e<span class="w"> </span><span class="s1">&#39;.[dev]&#39;</span>
179177
</pre></div>
180178
</div>
179+
<div class="section" id="code-style-type-checking">
180+
<h3>Code Style &amp; Type Checking<a class="headerlink" href="#code-style-type-checking" title="Permalink to this heading"></a></h3>
181+
<p>Code style is enforced via Black, isort and flake8. Types are checked with mypy currently, and pyright is recommended for local development though currently optional. There is a script to run the linting &amp; type-checking:</p>
182+
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>scripts/dev-lint.sh
183+
</pre></div>
184+
</div>
181185
</div>
182186
<div class="section" id="tests">
183-
<h2>Tests<a class="headerlink" href="#tests" title="Permalink to this heading"></a></h2>
184-
<p>GitHub will run all the test suites as part of any pull requests, here’s how you can run them locally:</p>
187+
<h3>Tests<a class="headerlink" href="#tests" title="Permalink to this heading"></a></h3>
188+
<p>GitHub will run all the test suites as part of any pull requests. There’s a handy script that runs the unit tests:</p>
189+
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>scripts/dev-test.sh
190+
</pre></div>
191+
</div>
185192
<div class="section" id="unit-tests">
186-
<h3>Unit Tests<a class="headerlink" href="#unit-tests" title="Permalink to this heading"></a></h3>
193+
<h4>Unit Tests<a class="headerlink" href="#unit-tests" title="Permalink to this heading"></a></h4>
187194
<p>Use <code class="docutils literal notranslate"><span class="pre">pytest</span></code> to run the unit tests, or <code class="docutils literal notranslate"><span class="pre">pytest</span> <span class="pre">--cov</span></code> to run with coverage. Pull requests are expected to be tested and not drop overall project coverage by &gt;1%.</p>
188195
</div>
189196
<div class="section" id="end-to-end-tests">
190-
<h3>End to End Tests<a class="headerlink" href="#end-to-end-tests" title="Permalink to this heading"></a></h3>
197+
<h4>End to End Tests<a class="headerlink" href="#end-to-end-tests" title="Permalink to this heading"></a></h4>
191198
<p>The end to end tests are also executed via <code class="docutils literal notranslate"><span class="pre">pytest</span></code> but not selected by default, options/usage:</p>
192199
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span><span class="c1"># Run local e2e tests (works on Linux / MacOS, no Windows yet)</span>
193200
pytest<span class="w"> </span>-m<span class="w"> </span>end_to_end_local
@@ -199,6 +206,7 @@ <h3>End to End Tests<a class="headerlink" href="#end-to-end-tests" title="Permal
199206
</div>
200207
</div>
201208
</div>
209+
</div>
202210
<div class="section" id="generate-documentation">
203211
<h2>Generate Documentation<a class="headerlink" href="#generate-documentation" title="Permalink to this heading"></a></h2>
204212
<p>To generate:</p>
@@ -210,10 +218,6 @@ <h2>Generate Documentation<a class="headerlink" href="#generate-documentation" t
210218
</pre></div>
211219
</div>
212220
</div>
213-
<div class="section" id="code-style">
214-
<h2>Code Style<a class="headerlink" href="#code-style" title="Permalink to this heading"></a></h2>
215-
<p>Code is linted using <code class="docutils literal notranslate"><span class="pre">flake8</span></code> and uses the <code class="docutils literal notranslate"><span class="pre">black</span></code> / <code class="docutils literal notranslate"><span class="pre">isort</span></code> codestyles. To check you can just run <code class="docutils literal notranslate"><span class="pre">flake8</span></code> from the root directory.</p>
216-
</div>
217221
</div>
218222

219223

en/next/getting-started.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ <h3>Navigation</h3>
141141
<div class="section" id="getting-started">
142142
<h1>Getting Started<a class="headerlink" href="#getting-started" title="Permalink to this heading"></a></h1>
143143
<p>This guide should help describe the basics of deploying stuff with pyinfra. Start by installing pyinfra with <code class="docutils literal notranslate"><span class="pre">pip</span></code> (see <a class="reference internal" href="install.html"><span class="doc">full install instructions</span></a>):</p>
144-
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>pip<span class="w"> </span>install<span class="w"> </span>pyinfra
144+
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>pip<span class="w"> </span>install<span class="w"> </span>pyinfra<span class="w"> </span>--pre
145145
</pre></div>
146146
</div>
147147
<p>To do something with pyinfra you need two things:</p>

en/next/objects.inv

18 Bytes
Binary file not shown.

en/next/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)