CONTRIBUTING.rst
This file
Path
CONTRIBUTING.rst
66 lines · 2.1 KiB
Last changed by
Merge pull request #1263 from jcrotts/7.xJay Crottsbefore adoptionbaf0124
History of this fileTake 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 the11``#pocoo`` IRC channel on Freenode can help with your issue. If your problem12is not strictly Click-specific, ``#python`` on Freenode is generally more13active. Also try searching or asking on `Stack Overflow`_ with the14``python-click`` tag. 1516.. _Stack Overflow: https://stackoverflow.com/questions/tagged/python-click?sort=votes1718Reporting issues19================2021- Under which versions of Python does this happen? This is even more important22 if your issue is encoding related.2324- Under which versions of Click does this happen? Check if this issue is fixed25 in the repository.2627Submitting patches28==================2930- Include tests if your patch is supposed to solve a bug, and explain clearly31 under which circumstances the bug happens. Make sure the test fails without32 your patch.3334- Try to follow `PEP8 <http://legacy.python.org/dev/peps/pep-0008/>`_, but you35 may ignore the line-length-limit if following it would make the code uglier.3637- For features: Consider whether your feature would be a better fit for an38 `external package <https://click.palletsprojects.com/en/7.x/contrib/>`_3940- For docs and bug fixes: Submit against the latest maintenance branch instead of master!4142- Non docs or text related changes need an entry in ``CHANGES.rst``,43 and ``.. versionadded`` or ``.. versionchanged`` markers in the docs.4445Running the testsuite46---------------------4748You probably want to set up a `virtualenv49<https://virtualenv.readthedocs.io/en/latest/index.html>`_.5051The minimal requirement for running the testsuite is ``py.test``. You can52install it with::5354 pip install pytest5556Then you can run the testsuite with::5758 py.test5960For a more isolated test environment, you can also install ``tox`` instead of61``pytest``. You can install it with::6263 pip install tox6465The ``tox`` command will then run all tests against multiple combinations of66Python versions and dependency versions.