Skip to content
Myr

Merge pull request #2572 from Lukasa/contribution

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Add basic contributing guide

authored by Kenneth Reitz · committed by Kenneth Reitz · parents ca66267, 9dba203 · Browse files · 2 files+162 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+162 added−0 removed

  • other:+162 added−0 removed

2 files+162 added−0 removed

added:docs/dev/contributing.rst+161 added
1.. _contributing:23Contributor's Guide4===================56If you're reading this you're probably interested in contributing to7``requests``. First, I'd like to say: thankyou! Open source projects8live-and-die based on the support they receive from others, and the fact that9you're even *considering* supporting ``requests`` is incredibly generous of10you.1112This document lays out guidelines and advice for contributing to ``requests``.13If you're thinking of contributing, start by reading this thoroughly and14getting a feel for how contributing to the project works. If you've still got15questions after reading this, you should go ahead and contact either16`Ian Cordasco`_ or `Cory Benfield`_, the active maintainers.1718The guide is split into sections based on the type of contribution you're19thinking of making, with a section that covers general guidelines for all20contributors.2122.. _Ian Cordasco: http://www.coglib.com/~icordasc/23.. _Cory Benfield: https://lukasa.co.uk/about242526All Contributions27-----------------2829Be Cordial Or Be On Your Way30~~~~~~~~~~~~~~~~~~~~~~~~~~~~3132``requests`` has one very important guideline governing all forms of33contribution, including things like reporting bugs or requesting features. The34guideline is `be cordial or be on your way`_. **All contributions are35welcome**, but they come with an implicit social contract: everyone must be36treated with respect.3738This can be a difficult area to judge, so the maintainers will enforce the39following policy. If any contributor acts rudely or aggressively towards any40other contributor, **regardless of whether they perceive themselves to be41acting in retaliation for an earlier breach of this guideline**, they will be42subject to the following procedure:43441. They must apologise. This apology must be genuine in nature: "I'm sorry you45 were offended" is not sufficient. The judgement of 'genuine' is at the46 discretion of the maintainers.472. If the apology is not offered, any outstanding and future contributions from48 the violating contributor will be rejected immediately.4950Everyone involved in the ``requests`` project, the maintainers included, are51bound by this policy. Failing to abide by it leads to the offender being kicked52off the project.5354.. _be cordial or be on your way: http://kennethreitz.org/be-cordial-or-be-on-your-way/5556.. _early-feedback:5758Get Early Feedback59~~~~~~~~~~~~~~~~~~6061If you are contributing, do not feel the need to sit on your contribution until62it is perfectly polished and complete. It helps everyone involved for you to63seek feedback as early as you possibly can. Submitting an early, unfinished64version of your contribution for feedback in no way prejudices your chances of65getting that contribution accepted, and can save you from putting a lot of work66into a contribution that is not suitable for the project.6768Contribution Suitability69~~~~~~~~~~~~~~~~~~~~~~~~7071The project maintainer has the last word on whether or not a contribution is72suitable for ``requests``. All contributions will be considered, but from time73to time contributions will be rejected because they do not suit the project.7475If your contribution is rejected, don't despair! So long as you followed these76guidelines, you'll have a much better chance of getting your next contribution77accepted.787980Code Contributions81------------------8283Steps84~~~~~8586When contributing code, you'll want to follow this checklist:87881. Fork the repository on GitHub.892. Run the tests to confirm they all pass on your system. If they don't, you'll90 need to investigate why they fail. If you're unable to diagnose this91 yourself, raise it as a bug report by following the guidelines in this92 document: :ref:`bug-reports`.933. Write tests that demonstrate your bug or feature. Ensure that they fail.944. Make your change.955. Run the entire test suite again, confirming that all tests pass *including96 the ones you just added*.976. Send a GitHub Pull Request to the main repository's ``master`` branch.98 GitHub Pull Requests are the expected method of code collaboration on this99 project. If you object to the GitHub workflow, you may mail a patch to any100 of the maintainers listed above.101102The following sub-sections go into more detail on some of the points above.103104Code Review105~~~~~~~~~~~106107Contributions will not be merged until they've been code reviewed. You should108implement any code review feedback unless you strongly object to it. In the109event that you object to the code review feedback, you should make your case110clearly and calmly. If, after doing so, the feedback is judged to still apply,111you must either apply the feedback or withdraw your contribution.112113New Contributors114~~~~~~~~~~~~~~~~115116If you are new or relatively new to Open Source, welcome! ``requests`` aims to117be a gentle introduction to the world of Open Source. If you're concerned about118how best to contribute, please consider mailing a maintainer (listed above) and119asking for help.120121Please also check the :ref:`early-feedback` section.122123Documentation Contributions124---------------------------125126Documentation improvements are always welcome! The documentation files live in127the ``docs/`` directory of the codebase. They're written in128`reStructuredText`_, and use `Sphinx`_ to generate the full suite of129documentation.130131When contributing documentation, please attempt to follow the style of the132documentation files. This means a soft-limit of 79 characters wide in your text133files and a semi-formal prose style.134135.. _reStructuredText: http://docutils.sourceforge.net/rst.html136.. _Sphinx: http://sphinx-doc.org/index.html137138139.. _bug-reports:140141Bug Reports142-----------143144Bug reports are hugely important! Before you raise one, though, please check145through the `GitHub issues`_, **both open and closed**, to confirm that the bug146hasn't been reported before. Duplicate bug reports are a huge drain on the time147of other contributors, and should be avoided as much as possible.148149.. _GitHub issues: https://github.com/kennethreitz/requests/issues150151152Feature Requests153----------------154155Requests is in a perpeptual feature freeze. The maintainers believe that156requests contains every major feature currently required by the vast majority157of users.158159If you believe there is a feature missing, feel free to raise a feature160request, but please do be aware that the overwhelming likelihood is that your161feature request will not be accepted.
modified:docs/index.rst+1 added
139 unmodified lines
140141.. toctree::142 :maxdepth: 1143144 dev/contributing145 dev/philosophy146 dev/todo147 dev/authors