mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 02:10:55 +00:00
deploy: dd5cc37aa4
This commit is contained in:
parent
fb8eea7ced
commit
a36082ab7b
4 changed files with 8 additions and 10 deletions
|
@ -163,7 +163,7 @@ as an opinionated code formatter, ensuring all comitted code is
|
|||
properly formatted.</p>
|
||||
<p>Have <code>black</code> auto-format your code (it shouldn't change any
|
||||
functionality) with:</p>
|
||||
<pre><code class="language-sh">black . --exclude="\.tox|build|env"
|
||||
<pre><code class="language-sh">black .
|
||||
</code></pre>
|
||||
</li>
|
||||
<li>
|
||||
|
@ -171,7 +171,7 @@ functionality) with:</p>
|
|||
<p><code>flake8</code> is a code checking tool. We require code to pass <code>flake8</code>
|
||||
before being merged into the codebase.</p>
|
||||
<p>Check all application and test code with:</p>
|
||||
<pre><code class="language-sh">flake8 synapse tests
|
||||
<pre><code class="language-sh">flake8 .
|
||||
</code></pre>
|
||||
</li>
|
||||
<li>
|
||||
|
@ -179,9 +179,8 @@ before being merged into the codebase.</p>
|
|||
<p><code>isort</code> ensures imports are nicely formatted, and can suggest and
|
||||
auto-fix issues such as double-importing.</p>
|
||||
<p>Auto-fix imports with:</p>
|
||||
<pre><code class="language-sh">isort -rc synapse tests
|
||||
<pre><code class="language-sh">isort .
|
||||
</code></pre>
|
||||
<p><code>-rc</code> means to recursively search the given directories.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p>It's worth noting that modern IDEs and text editors can run these tools
|
||||
|
|
|
@ -13465,7 +13465,7 @@ as an opinionated code formatter, ensuring all comitted code is
|
|||
properly formatted.</p>
|
||||
<p>Have <code>black</code> auto-format your code (it shouldn't change any
|
||||
functionality) with:</p>
|
||||
<pre><code class="language-sh">black . --exclude="\.tox|build|env"
|
||||
<pre><code class="language-sh">black .
|
||||
</code></pre>
|
||||
</li>
|
||||
<li>
|
||||
|
@ -13473,7 +13473,7 @@ functionality) with:</p>
|
|||
<p><code>flake8</code> is a code checking tool. We require code to pass <code>flake8</code>
|
||||
before being merged into the codebase.</p>
|
||||
<p>Check all application and test code with:</p>
|
||||
<pre><code class="language-sh">flake8 synapse tests
|
||||
<pre><code class="language-sh">flake8 .
|
||||
</code></pre>
|
||||
</li>
|
||||
<li>
|
||||
|
@ -13481,9 +13481,8 @@ before being merged into the codebase.</p>
|
|||
<p><code>isort</code> ensures imports are nicely formatted, and can suggest and
|
||||
auto-fix issues such as double-importing.</p>
|
||||
<p>Auto-fix imports with:</p>
|
||||
<pre><code class="language-sh">isort -rc synapse tests
|
||||
<pre><code class="language-sh">isort .
|
||||
</code></pre>
|
||||
<p><code>-rc</code> means to recursively search the given directories.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p>It's worth noting that modern IDEs and text editors can run these tools
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue