mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 01:52:41 +00:00
deploy: 500792d0f1d8da67c1bd70b3066c78cf36811ce3
This commit is contained in:
parent
fdcf931b57
commit
db69c46b1d
@ -11,9 +11,9 @@ We use the following tools to make the code style to be as consistent as possibl
|
||||
|
||||
The following versions of the above tools are used:
|
||||
|
||||
- ``black == 12.6b0``
|
||||
- ``flake8 == 3.9.2``
|
||||
- ``isort == 5.9.2``
|
||||
- ``black == 22.3.0``
|
||||
- ``flake8 == 5.0.4``
|
||||
- ``isort == 5.10.1``
|
||||
|
||||
After running the following commands:
|
||||
|
||||
@ -54,10 +54,17 @@ it should succeed this time:
|
||||
If you want to check the style of your code before ``git commit``, you
|
||||
can do the following:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ pre-commit install
|
||||
$ pre-commit run
|
||||
|
||||
Or without installing the pre-commit hooks:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ cd icefall
|
||||
$ pip install black==21.6b0 flake8==3.9.2 isort==5.9.2
|
||||
$ pip install black==22.3.0 flake8==5.0.4 isort==5.10.1
|
||||
$ black --check your_changed_file.py
|
||||
$ black your_changed_file.py # modify it in-place
|
||||
$
|
||||
|
@ -19,4 +19,3 @@ It can be downloaded from `<https://www.openslr.org/33/>`_
|
||||
tdnn_lstm_ctc
|
||||
conformer_ctc
|
||||
stateless_transducer
|
||||
|
||||
|
@ -6,4 +6,3 @@ TIMIT
|
||||
|
||||
tdnn_ligru_ctc
|
||||
tdnn_lstm_ctc
|
||||
|
||||
|
@ -91,9 +91,9 @@
|
||||
<p>The following versions of the above tools are used:</p>
|
||||
<blockquote>
|
||||
<div><ul class="simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">black</span> <span class="pre">==</span> <span class="pre">12.6b0</span></code></p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">flake8</span> <span class="pre">==</span> <span class="pre">3.9.2</span></code></p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">isort</span> <span class="pre">==</span> <span class="pre">5.9.2</span></code></p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">black</span> <span class="pre">==</span> <span class="pre">22.3.0</span></code></p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">flake8</span> <span class="pre">==</span> <span class="pre">5.0.4</span></code></p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">isort</span> <span class="pre">==</span> <span class="pre">5.10.1</span></code></p></li>
|
||||
</ul>
|
||||
</div></blockquote>
|
||||
<p>After running the following commands:</p>
|
||||
@ -136,8 +136,15 @@ it should succeed this time:</p>
|
||||
<p>If you want to check the style of your code before <code class="docutils literal notranslate"><span class="pre">git</span> <span class="pre">commit</span></code>, you
|
||||
can do the following:</p>
|
||||
<blockquote>
|
||||
<div><div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$ pre-commit install
|
||||
$ pre-commit run
|
||||
</pre></div>
|
||||
</div>
|
||||
</div></blockquote>
|
||||
<p>Or without installing the pre-commit hooks:</p>
|
||||
<blockquote>
|
||||
<div><div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$ <span class="nb">cd</span> icefall
|
||||
$ pip install <span class="nv">black</span><span class="o">==</span><span class="m">21</span>.6b0 <span class="nv">flake8</span><span class="o">==</span><span class="m">3</span>.9.2 <span class="nv">isort</span><span class="o">==</span><span class="m">5</span>.9.2
|
||||
$ pip install <span class="nv">black</span><span class="o">==</span><span class="m">22</span>.3.0 <span class="nv">flake8</span><span class="o">==</span><span class="m">5</span>.0.4 <span class="nv">isort</span><span class="o">==</span><span class="m">5</span>.10.1
|
||||
$ black --check your_changed_file.py
|
||||
$ black your_changed_file.py <span class="c1"># modify it in-place</span>
|
||||
$
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user