summaryrefslogtreecommitdiff
path: root/CONTRIBUTING.rst
diff options
context:
space:
mode:
authorMarkus Unterwaditzer <markus@unterwaditzer.net>2015-04-26 14:06:29 +0200
committerMarkus Unterwaditzer <markus@unterwaditzer.net>2015-04-26 14:06:29 +0200
commit3b766a866fc78226e43a9efe692220bbcb87e399 (patch)
tree36bf7750b00fe1cef66effda04c3ef502d0f18f3 /CONTRIBUTING.rst
parent3d3bb7581cb7fb167e95195285569c69e7d49448 (diff)
downloadclick-3b766a866fc78226e43a9efe692220bbcb87e399.tar.gz
Add contributing-file
Inspired by #311, but mostly taken from Werkzeug.
Diffstat (limited to 'CONTRIBUTING.rst')
-rw-r--r--CONTRIBUTING.rst56
1 files changed, 56 insertions, 0 deletions
diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst
new file mode 100644
index 0000000..e16e50b
--- /dev/null
+++ b/CONTRIBUTING.rst
@@ -0,0 +1,56 @@
+==========================
+How to contribute to Click
+==========================
+
+Thanks for considering contributing to Click.
+
+Support questions
+=================
+
+Please, don't use the issue tracker for this. Check whether the `Pocoo IRC
+channel <http://www.pocoo.org/irc/>`_ can help with your issue. If your problem
+is not strictly Click-specific, ``#python`` on Freenode is generally more
+active. `StackOverflow <https://stackoverflow.com/>`_ is also worth
+considering.
+
+Reporting issues
+================
+
+- Under which versions of Python does this happen? This is even more important
+ if your issue is encoding related.
+
+- Under which versions of Click does this happen? Check if this issue is fixed
+ in the repository.
+
+Submitting patches
+==================
+
+- Include tests if your patch is supposed to solve a bug, and explain clearly
+ under which circumstances the bug happens. Make sure the test fails without
+ your patch.
+
+- Try to follow `PEP8 <http://legacy.python.org/dev/peps/pep-0008/>`_, but you
+ may ignore the line-length-limit if following it would make the code uglier.
+
+Running the testsuite
+---------------------
+
+You probably want to set up a `virtualenv
+<http://virtualenv.readthedocs.org/en/latest/index.html>`_.
+
+The minimal requirement for running the testsuite is ``py.test``. You can
+install it with::
+
+ pip install pytest
+
+Then you can run the testsuite with::
+
+ py.test
+
+For a more isolated test environment, you can also install ``tox`` instead of
+``pytest``. You can install it with::
+
+ pip install tox
+
+The ``tox`` command will then run all tests against multiple combinations of
+Python versions and dependency versions.