2015-06-23 14:28:56 +02:00
|
|
|
Contributor Guidelines
|
|
|
|
======================
|
|
|
|
|
2014-05-02 20:27:04 +02:00
|
|
|
Contributions are welcome & greatly appreciated, every little bit
|
|
|
|
helps in making Hy more awesome.
|
|
|
|
|
2014-12-06 08:13:40 +01:00
|
|
|
Pull requests are great! We love them; here is a quick guide:
|
2014-05-02 20:27:04 +02:00
|
|
|
|
2016-04-08 00:49:46 +02:00
|
|
|
- `Fork the repo`_ and create a topic branch for a feature/fix. Avoid
|
2016-08-07 03:25:07 +02:00
|
|
|
making changes directly on the master branch. If you would like to
|
|
|
|
contribute but don't know how to begin, the `good-first-bug`_ label
|
|
|
|
of the `issue tracker`_ is the place to go.
|
2016-04-08 00:49:46 +02:00
|
|
|
(If you're new to Git: `Start Here`_)
|
2014-05-02 20:27:04 +02:00
|
|
|
|
2016-12-08 11:48:50 +01:00
|
|
|
- Before contributing make sure you check the docs. There are two versions of docs available:
|
|
|
|
|
|
|
|
+ `latest`_, for use with the bleeding-edge GitHub version.
|
|
|
|
|
|
|
|
+ `stable`_, for use with the PyPI version.
|
|
|
|
|
2014-12-06 08:13:40 +01:00
|
|
|
- All incoming features should be accompanied with tests.
|
2014-05-02 20:27:04 +02:00
|
|
|
|
2016-03-30 06:23:27 +02:00
|
|
|
- If you are contributing a major change to the Hy language (e.g. changing
|
|
|
|
the behavior of or removing functions or macros), or you're unsure of
|
|
|
|
the proposed change, please open an issue in the `issue tracker`_ before
|
|
|
|
submitting the PR. This will allow others to give feedback on your idea,
|
|
|
|
and it will avoid constant changes or wasted work. For other PRs (such as
|
|
|
|
documentation fixes or code cleanup), you can directly open the PR without
|
|
|
|
first opening a corresponding issue.
|
2016-03-29 21:10:07 +02:00
|
|
|
|
2014-05-02 20:27:04 +02:00
|
|
|
- Before you submit a PR, please run the tests and check your code
|
2014-12-06 08:13:40 +01:00
|
|
|
against the style guide. You can do both of these things at once::
|
2014-05-02 20:27:04 +02:00
|
|
|
|
|
|
|
$ make d
|
|
|
|
|
|
|
|
- Make commits into logical units, so that it is easier to track &
|
|
|
|
navigate later. Before submitting a PR, try squashing the commits
|
2014-12-06 08:13:40 +01:00
|
|
|
into changesets that are easy to come back to later. Also, make sure
|
|
|
|
you don't leave spurious whitespace in the changesets; this avoids
|
2014-05-02 20:27:04 +02:00
|
|
|
creation of whitespace fix commits later.
|
|
|
|
|
2014-12-06 08:13:40 +01:00
|
|
|
- As far as commit messages go, try to adhere to the following:
|
2014-05-02 20:27:04 +02:00
|
|
|
|
2014-12-06 08:13:40 +01:00
|
|
|
+ Try sticking to the 50 character limit for the first line of Git
|
|
|
|
commit messages.
|
2014-05-02 20:27:04 +02:00
|
|
|
|
2016-06-08 00:45:12 +02:00
|
|
|
+ For more detail/explanations, follow this up with a blank line and
|
2014-12-06 08:13:40 +01:00
|
|
|
continue describing the commit in detail.
|
2014-05-02 20:27:04 +02:00
|
|
|
|
2017-01-31 23:32:08 +01:00
|
|
|
- Unless your change is very small, like a documentation wording
|
|
|
|
improvement, add an item describing it to the NEWS file.
|
|
|
|
|
2014-12-06 08:13:40 +01:00
|
|
|
- Finally, add yourself to the AUTHORS file (as a separate commit): you
|
2014-05-02 20:27:04 +02:00
|
|
|
deserve it :)
|
|
|
|
|
|
|
|
- All incoming changes need to be acked by 2 different members of
|
|
|
|
Hylang's core team. Additional review is clearly welcome, but we need
|
|
|
|
a minimum of 2 signoffs for any change.
|
|
|
|
|
|
|
|
- If a core member is sending in a PR, please find 2 core members that doesn't
|
|
|
|
include the PR submitter. The idea here is that one can work with the PR
|
|
|
|
author, and a second acks the entire change set.
|
|
|
|
|
|
|
|
- For documentation & other trivial changes, we're good to merge after one
|
|
|
|
ACK. We've got low coverage, so it'd be great to keep that barrier low.
|
2015-06-23 14:28:56 +02:00
|
|
|
|
|
|
|
Contributor Code of Conduct
|
|
|
|
===========================
|
|
|
|
|
|
|
|
As contributors and maintainers of this project, we pledge to respect
|
|
|
|
all people who contribute through reporting issues, posting feature
|
|
|
|
requests, updating documentation, submitting pull requests or patches,
|
|
|
|
and other activities.
|
|
|
|
|
|
|
|
We are committed to making participation in this project a
|
|
|
|
harassment-free experience for everyone, regardless of level of
|
|
|
|
experience, gender, gender identity and expression, sexual
|
|
|
|
orientation, disability, personal appearance, body size, race,
|
|
|
|
ethnicity, age, or religion.
|
|
|
|
|
|
|
|
Examples of unacceptable behavior by participants include the use of
|
|
|
|
sexual language or imagery, derogatory comments or personal attacks,
|
|
|
|
trolling, public or private harassment, insults, or other
|
|
|
|
unprofessional conduct.
|
|
|
|
|
|
|
|
Project maintainers have the right and responsibility to remove, edit,
|
|
|
|
or reject comments, commits, code, wiki edits, issues, and other
|
|
|
|
contributions that are not aligned to this Code of Conduct. Project
|
|
|
|
maintainers who do not follow the Code of Conduct may be removed from
|
|
|
|
the project team.
|
|
|
|
|
|
|
|
This code of conduct applies both within project spaces and in public
|
|
|
|
spaces when an individual is representing the project or its
|
|
|
|
community.
|
|
|
|
|
|
|
|
Instances of abusive, harassing, or otherwise unacceptable behavior
|
|
|
|
may be reported by opening an issue or contacting one or more of the
|
|
|
|
project maintainers.
|
|
|
|
|
|
|
|
This Code of Conduct is adapted from the `Contributor Covenant`_,
|
|
|
|
version 1.1.0, available at
|
|
|
|
http://contributor-covenant.org/version/1/1/0/.
|
|
|
|
|
|
|
|
.. _Contributor Covenant: http://contributor-covenant.org
|
2016-03-30 06:23:27 +02:00
|
|
|
.. _issue tracker: https://github.com/hylang/hy/issues
|
2016-04-08 00:49:46 +02:00
|
|
|
.. _Fork the Repo: https://help.github.com/articles/fork-a-repo/
|
2016-10-09 13:01:08 +02:00
|
|
|
.. _Start Here: http://rogerdudler.github.io/git-guide/
|
2017-02-07 20:25:40 +01:00
|
|
|
.. _good-first-bug: https://github.com/hylang/hy/issues?q=is%3Aissue+is%3Aopen+label%3Agood-first-bug
|
2016-12-08 11:48:50 +01:00
|
|
|
.. _latest: http://hylang.org/
|
|
|
|
.. _stable: http://docs.hylang.org/en/stable/
|
|
|
|
|