File tree Expand file tree Collapse file tree 5 files changed +13
-16
lines changed Expand file tree Collapse file tree 5 files changed +13
-16
lines changed Original file line number Diff line number Diff line change 99 - master
1010
1111jobs :
12- flake8 :
12+ lint :
1313 runs-on : ubuntu-latest
1414
1515 steps :
1616 - uses : actions/checkout@v4
1717 - name : Run flake8
18- run : |
19- # ignore errors for long lines and multi-statement lines
20- pipx run flake8 --ignore=E501,E701,W503 .
18+ run : make lint
Original file line number Diff line number Diff line change 1414
1515 steps :
1616 - uses : actions/checkout@v4
17- - uses : actions/setup-python@v5
18- with :
19- python-version : ' 3.11'
20- - name : Install dependencies
21- run : |
22- python -m pip install rstcheck
2317 - name : Run rstcheck
24- run : |
25- python -m rstcheck --ignore-directives autofunction README.rst reference/*.rst
18+ run : make rstcheck
Original file line number Diff line number Diff line change 1+ lint :
2+ # ignore errors for long lines and multi-statement lines
3+ @pipx run flake8 --ignore=E501,E701,W503 .
4+
5+ rstcheck :
6+ @pipx run rstcheck --ignore-directives autofunction README.rst reference/* .rst
Original file line number Diff line number Diff line change @@ -296,6 +296,8 @@ Releases are done by running ``make-release.sh VERSION_GOES_HERE`` to build the
296296Testing
297297~~~~~~~
298298
299+ Prerequisite: `Install pipx <https://pipx.pypa.io/stable/installation/ >`__.
300+
299301To run all the tests:
300302
301303.. code :: bash
@@ -306,13 +308,13 @@ To run static analysis:
306308
307309.. code :: bash
308310
309- python -m flake8 --ignore=E501,E701,W503 speech_recognition tests examples setup.py
311+ make lint
310312
311313 To ensure RST is well-formed:
312314
313315.. code :: bash
314316
315- python -m rstcheck README.rst reference/ * .rst
317+ make rstcheck
316318
317319 Testing is also done automatically by GitHub Actions, upon every push.
318320
Original file line number Diff line number Diff line change 11[options.extras_require]
22dev =
3- flake8
4- rstcheck
53 pytest
64 pytest-randomly
75 respx
You can’t perform that action at this time.
0 commit comments