Skip to content
This repository was archived by the owner on Jun 28, 2023. It is now read-only.

Commit 7f27a8f

Browse files
committed
Add README
1 parent 5d886cb commit 7f27a8f

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed

README.rst

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
========================================
2+
python-everywhere
3+
========================================
4+
5+
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.
55+
56+
57+
58+
Type Checking
59+
========================================
60+
61+
mypy
62+
------------------------------
63+
64+
.. code-block:: sh
65+
66+
mypy everywhere
67+
68+
69+
70+
Continuous Integration
71+
========================================
72+
73+
Travis CI
74+
------------------------------
75+
76+
Please visit ``https://travis-ci.org/profile/USERNAME``
77+
to open Travis CI support for your repo.

0 commit comments

Comments
 (0)