You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 28, 2023. It is now read-only.
Inspired by `rust-everywhere <https://github.com/japaric/rust-everywhere>`_.
6
+
7
+
8
+
Installation
9
+
========================================
10
+
11
+
.. code-block:: sh
12
+
13
+
python setup.py install
14
+
15
+
16
+
17
+
Testing
18
+
========================================
19
+
20
+
pytest
21
+
------------------------------
22
+
23
+
With `pytest-runner <https://github.com/pytest-dev/pytest-runner>`_,
24
+
we will have ``python setup.py pytest``.
25
+
26
+
With ``addopts = --doctest-modules`` in ``pytest.ini``,
27
+
we will also invoke doctest.
28
+
29
+
With alias in ``setup.cfg``, we can just use ``python setup.py test``.
30
+
31
+
run your test code :
32
+
33
+
.. code-block:: sh
34
+
35
+
python setup.py test
36
+
python setup.py test --addopts -v # verbose
37
+
38
+
39
+
Here is the pytest's `documetation <https://pytest.org/latest/goodpractices.html#integrating-with-setuptools-python-setup-py-test-pytest-runner>`_ about integrating with setuptools.
40
+
41
+
42
+
43
+
Linter
44
+
========================================
45
+
46
+
Flake8
47
+
------------------------------
48
+
49
+
.. code-block:: sh
50
+
51
+
python setup.py flake8
52
+
53
+
54
+
Here is the flake8's `documetation <http://flake8.readthedocs.io/en/latest/setuptools.html>`_ about integrating with setuptools.
0 commit comments