2013-04-13 16:55:13 -07:00
|
|
|
Contribution submission guidelines
|
|
|
|
|
==================================
|
|
|
|
|
|
2013-04-14 07:57:13 -07:00
|
|
|
* Consider whether your new feature might be better suited as a plugin_. Folks
|
|
|
|
|
are usually available in the `#pelican IRC channel`_ if help is needed to
|
|
|
|
|
make that determination.
|
2013-04-13 16:55:13 -07:00
|
|
|
* `Create a new git branch`_ specific to your change (as opposed to making
|
|
|
|
|
your commits in the master branch).
|
|
|
|
|
* **Don't put multiple fixes/features in the same branch / pull request.**
|
|
|
|
|
For example, if you're hacking on a new feature and find a bugfix that
|
|
|
|
|
doesn't *require* your new feature, **make a new distinct branch and pull
|
|
|
|
|
request** for the bugfix.
|
2013-12-04 08:07:26 +00:00
|
|
|
* Adhere to [PEP8 coding standards](http://www.python.org/dev/peps/pep-0008/)
|
|
|
|
|
whenever possible.
|
2013-04-13 16:55:13 -07:00
|
|
|
* Check for unnecessary whitespace via ``git diff --check`` before committing.
|
|
|
|
|
* **Add docs and tests for your changes**.
|
2013-05-26 12:44:32 +02:00
|
|
|
* `Run all the tests`_ **on both Python 2.7 and 3.3** to ensure nothing was
|
2013-04-13 16:55:13 -07:00
|
|
|
accidentally broken.
|
|
|
|
|
* First line of your commit message should start with present-tense verb, be 50
|
|
|
|
|
characters or less, and include the relevant issue number(s) if applicable.
|
|
|
|
|
*Example:* ``Ensure proper PLUGIN_PATH behavior. Refs #428.`` If the commit
|
|
|
|
|
*completely fixes* an existing bug report, please use ``Fixes #585`` or ``Fix
|
|
|
|
|
#585`` syntax (so the relevant issue is automatically closed upon PR merge).
|
2013-04-14 07:57:13 -07:00
|
|
|
* After the first line of the commit message, add a blank line and then a more
|
2013-04-13 16:55:13 -07:00
|
|
|
detailed explanation (when relevant).
|
2013-04-14 07:57:13 -07:00
|
|
|
* If you have previously filed a GitHub issue and want to contribute code that
|
|
|
|
|
addresses that issue, **please use** ``hub pull-request`` instead of using
|
|
|
|
|
GitHub's web UI to submit the pull request. This isn't an absolute
|
|
|
|
|
requirement, but makes the maintainers' lives much easier! Specifically:
|
|
|
|
|
`install hub <https://github.com/defunkt/hub/#installation>`_ and then run
|
|
|
|
|
`hub pull-request <https://github.com/defunkt/hub/#git-pull-request>`_ to
|
|
|
|
|
turn your GitHub issue into a pull request containing your code.
|
2013-04-13 16:55:13 -07:00
|
|
|
|
|
|
|
|
Check out our `Git Tips`_ page or ask on the `#pelican IRC channel`_ if you
|
|
|
|
|
need assistance or have any questions about these guidelines.
|
|
|
|
|
|
2013-04-14 07:57:13 -07:00
|
|
|
.. _`plugin`: http://docs.getpelican.com/en/latest/plugins.html
|
2013-04-13 16:55:13 -07:00
|
|
|
.. _`#pelican IRC channel`: http://webchat.freenode.net/?channels=pelican&uio=d4
|
|
|
|
|
.. _`Create a new git branch`: https://github.com/getpelican/pelican/wiki/Git-Tips#making-your-changes
|
2013-04-14 07:57:13 -07:00
|
|
|
.. _`Run all the tests`: http://docs.getpelican.com/en/latest/contribute.html#running-the-test-suite
|
2013-04-13 16:55:13 -07:00
|
|
|
.. _`Git Tips`: https://github.com/getpelican/pelican/wiki/Git-Tips
|