@@ -30,26 +30,22 @@ Python sources
30
30
The code base follows `pep8 <https://www.python.org/dev/peps/pep-0008/ >`_ guidelines with lines
31
31
wrapping at the 79th character. You can verify that the code follows the conventions with::
32
32
33
- $ pycodestyle --ignore=E252,W503,W504 spinach tests
33
+ $ hatch run pep8
34
34
35
35
Running tests is an invaluable help when adding a new feature or when refactoring. Try to add the
36
- proper test cases in ``tests/ `` together with your patch. The test suite can be run with pytest::
36
+ proper test cases in ``tests/ `` together with your patch. Because the Redis broker tests require
37
+ a running Redis server, there is a convenience `pyproject.toml ` that runs all the tests and pep8
38
+ checks for you after starting Redis in a container via docker-compose. Simply running::
37
39
38
- $ pytest tests
39
-
40
- Because the Redis broker tests require a running Redis server, there is also a convenience
41
- `tox.ini ` that runs all the tests and pep8 checks for you after starting Redis in a container via
42
- docker-compose. Simply running::
43
-
44
- $ tox
40
+ $ hatch run py3
45
41
46
42
will build a virtualenv, install Spinach and its dependencies into it, start the Redis server in
47
- the container, and run tests and pycodestyle , tearing down the Redis server container when done.
43
+ the container, and run tests and pep8 , tearing down the Redis server container when done.
48
44
49
45
Compatibility
50
46
-------------
51
47
52
- Spinach runs on all versions of Python starting from 3.6 . Tests are run via GitHub actions to
48
+ Spinach runs on all versions of Python starting from 3.8 . Tests are run via GitHub actions to
53
49
ensure that.
54
50
55
51
Documentation sources
@@ -61,7 +57,6 @@ with `Sphinx <http://www.sphinx-doc.org/en/stable/index.html>`_.
61
57
62
58
If you modify the docs, make sure it builds without errors::
63
59
64
- $ cd doc/
65
- $ make html
60
+ $ hatch run docs:build html
66
61
67
62
The generated HTML pages should land in ``doc/_build/html ``.
0 commit comments