Python Version

Options

Frameworks

Tests

More coming soon, and you can help.

#!/usr/bin/env python3
"""
Module Docstring
"""

__author__ = "Your Name"
__version__ = "0.1.0"
__license__ = "MIT"


def main():
    """ Main entry point of the app """
    print("hello world")


if __name__ == "__main__":
    """ This is executed when run from the command line """
    main()
"""
You can auto-discover and run all tests with this command:

    py.test

Documentation: https://docs.pytest.org/en/latest/
"""


def inc(x):
    return x + 1


def test_answer():
    assert inc(3) == 5
# Tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
#
# See also https://tox.readthedocs.io/en/latest/config.html for more
# configuration options.

[tox]
envlist = py34, py35, py36

# don't require a setup.py file
skipsdist = True

[testenv]
deps = pytest       # install pytest in the venvs
commands = py.test  # run the tests
pytest>=3.0.7
tox>=2.7.0