Thanks for considering contributing to Click.
Please, don't use the issue tracker for this. Check whether the
#pocoo
IRC channel on Freenode can help with your issue. If your problem
is not strictly Click-specific, #python
on Freenode is generally more
active. Also try searching or asking on Stack Overflow with the
python-click
tag.
- 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.
- 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, but you may ignore the line-length-limit if following it would make the code uglier.
- For features: Consider whether your feature would be a better fit for an external package
- For docs and bug fixes: Submit against the latest maintenance branch instead of master!
- Non docs or text related changes need an entry in
CHANGES.rst
, and.. versionadded
or.. versionchanged
markers in the docs.
You probably want to set up a virtualenv.
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.