Skip to content
Myr

CONTRIBUTING.rst

This file

Path

CONTRIBUTING.rst

61 lines · 1.8 KiB

Last changed by

Add info about maintenance branchesMarkus Unterwaditzerbefore adoption7a48f3e

History of this file

Take it

1==========================2How to contribute to Click3==========================45Thanks for considering contributing to Click.67Support questions8=================910Please, don't use the issue tracker for this. Check whether the `Pocoo IRC11channel <http://www.pocoo.org/irc/>`_ can help with your issue. If your problem12is not strictly Click-specific, ``#python`` on Freenode is generally more13active.  `StackOverflow <https://stackoverflow.com/>`_ is also worth14considering.1516Reporting issues17================1819- Under which versions of Python does this happen? This is even more important20  if your issue is encoding related.2122- Under which versions of Click does this happen? Check if this issue is fixed23  in the repository.2425Submitting patches26==================2728- Include tests if your patch is supposed to solve a bug, and explain clearly29  under which circumstances the bug happens. Make sure the test fails without30  your patch.3132- Try to follow `PEP8 <http://legacy.python.org/dev/peps/pep-0008/>`_, but you33  may ignore the line-length-limit if following it would make the code uglier.3435- For features: Consider whether your feature would be a better fit for an36  `external package <http://click.pocoo.org/contrib/>`_3738- For bugfixes: Submit against the latest maintenance branch instead of master!3940Running the testsuite41---------------------4243You probably want to set up a `virtualenv44<http://virtualenv.readthedocs.org/en/latest/index.html>`_.4546The minimal requirement for running the testsuite is ``py.test``.  You can47install it with::4849    pip install pytest5051Then you can run the testsuite with::5253    py.test5455For a more isolated test environment, you can also install ``tox`` instead of56``pytest``. You can install it with::5758    pip install tox5960The ``tox`` command will then run all tests against multiple combinations of61Python versions and dependency versions.