|
1 |
| -# Contributing |
| 1 | +# Contributing to OasisMove |
2 | 2 |
|
3 |
| -Contributions are welcome, and they are greatly appreciated! Every little bit |
4 |
| -helps, and credit will always be given. You can contribute in the ways listed below. |
| 3 | +When contributing to this repository, please first discuss the change you wish to make via issue, |
| 4 | +email, or any other method with the owners of this repository before making a change. |
5 | 5 |
|
6 |
| -## Report Bugs |
| 6 | +### Testing |
7 | 7 |
|
8 |
| -Report bugs using GitHub issues. |
| 8 | +Please provide unit tests for the new code you create, testing the main functionality or feature to be submitted. We can always use more test coverage! |
9 | 9 |
|
10 |
| -If you are reporting a bug, please include: |
| 10 | +### Submitting changes |
11 | 11 |
|
12 |
| -* Your operating system name and version. |
13 |
| -* Any details about your local setup that might be helpful in troubleshooting. |
14 |
| -* Detailed steps to reproduce the bug. |
| 12 | +In order to submit you changes, please send a [GitHub Pull Request to OasisMove](https://github.com/KVSlab/OasisMove/pull/new/master) with a clear list of what you've done (read more about [pull requests](http://help.github.com/pull-requests/)). Please follow our coding conventions (below) and make sure all of your commits are atomic (one feature per commit). |
15 | 13 |
|
16 |
| -## Fix Bugs |
| 14 | +Always write a clear commit message when submitting your changes. One-line messages are fine for small changes, but bigger changes should look like this: |
17 | 15 |
|
18 |
| -Look through the GitHub issues for bugs. Anything tagged with "bug" and "help |
19 |
| -wanted" is open to whoever wants to implement it. |
| 16 | + > $ git commit -m "A brief summary of the commit |
| 17 | + > |
| 18 | + > A paragraph describing what changed and its impact." |
20 | 19 |
|
21 |
| -## Implement Features |
| 20 | +### Coding conventions |
22 | 21 |
|
23 |
| -Look through the GitHub issues for features. Anything tagged with "enhancement" |
24 |
| -and "help wanted" is open to whoever wants to implement it. |
| 22 | +#### Formatting |
| 23 | + * Avoid inline comments. |
| 24 | + * Break long lines after 120 characters. |
| 25 | + * Delete trailing whitespace. |
| 26 | + * Don't include spaces after `(`, `[` or before `]`, `)`. |
| 27 | + * Don't misspell. |
| 28 | + * Use 4 space indentation. |
| 29 | + * Use an empty line between methods. |
| 30 | + * Use spaces around operators, except for unary operators, such as `!`. |
| 31 | + * Use spaces after commas, after colons and semicolons, around `{` and before |
| 32 | + `}`. |
25 | 33 |
|
26 |
| -## Write Documentation |
| 34 | +#### Naming |
| 35 | + * Avoid abbreviations. |
| 36 | + * Use snake case for variables and methods. |
| 37 | + * Use camel case for classes. |
| 38 | + * Name variables, methods, and classes to reveal intent. |
27 | 39 |
|
28 |
| -OasisMove could always use more documentation, whether as part of the |
29 |
| -official OasisMove docs, in docstrings, or even on the web in blog posts, |
30 |
| -articles, and such. |
| 40 | +#### Organization |
| 41 | + * Order methods so that caller methods are earlier in the file than the methods |
| 42 | + they call. |
| 43 | + * Place methods receiving command line arguments at the bottom of the file, but above the top-level script environment check. |
| 44 | + * Separate local and global imports of modules. |
31 | 45 |
|
32 |
| -## Submit Feedback |
| 46 | +### Code of Conduct |
33 | 47 |
|
34 |
| -The best way to send feedback is to file an issue on GitHub. |
| 48 | +### Our Pledge |
35 | 49 |
|
36 |
| -If you are proposing a feature: |
| 50 | +In the interest of fostering an open and welcoming environment, we as |
| 51 | +contributors and maintainers pledge to making participation in our project and |
| 52 | +our community a harassment-free experience for everyone, regardless of age, body |
| 53 | +size, disability, ethnicity, sex characteristics, gender identity and expression, |
| 54 | +level of experience, education, socio-economic status, nationality, personal |
| 55 | +appearance, race, religion, or sexual identity and orientation. |
37 | 56 |
|
38 |
| -* Explain in detail how it would work. |
39 |
| -* Keep the scope as narrow as possible, to make it easier to implement. |
40 |
| -* Remember that this is a volunteer-driven project, and that contributions |
41 |
| - are welcome :) |
| 57 | +### Our Standards |
42 | 58 |
|
43 |
| -## Get Started |
| 59 | +Examples of behavior that contributes to creating a positive environment |
| 60 | +include: |
44 | 61 |
|
45 |
| -Ready to contribute? Here's how to set up `OasisMove` for local development. |
| 62 | + * Using welcoming and inclusive language |
| 63 | + * Being respectful of differing viewpoints and experiences |
| 64 | + * Gracefully accepting constructive criticism |
| 65 | + * Focusing on what is best for the community |
| 66 | + * Showing empathy towards other community members |
46 | 67 |
|
47 |
| -1. Fork the repo on GitHub. |
48 |
| -2. Clone your fork locally. |
49 |
| -3. Install your local copy into a virtualenv, e.g., using `conda`. |
50 |
| -4. Create a branch for local development and make changes locally. |
51 |
| -5. Commit your changes and push your branch to GitHub. |
52 |
| -6. Submit a pull request through the GitHub website. |
| 68 | +Examples of unacceptable behavior by participants include: |
53 | 69 |
|
54 |
| -## Code of Conduct |
| 70 | + * The use of sexualized language or imagery and unwelcome sexual attention or |
| 71 | + advances |
| 72 | + * Trolling, insulting/derogatory comments, and personal or political attacks |
| 73 | + * Public or private harassment |
| 74 | + * Publishing others' private information, such as a physical or electronic |
| 75 | + address, without explicit permission |
| 76 | + * Other conduct which could reasonably be considered inappropriate in a |
| 77 | + professional setting |
55 | 78 |
|
56 |
| -Please note that the OasisMove project is released with a [Contributor Code of Conduct](CONDUCT.md). By contributing to this project you agree to abide by its terms. |
| 79 | +### Our Responsibilities |
| 80 | + |
| 81 | +Project maintainers are responsible for clarifying the standards of acceptable |
| 82 | +behavior and are expected to take appropriate and fair corrective action in |
| 83 | +response to any instances of unacceptable behavior. |
| 84 | + |
| 85 | +Project maintainers have the right and responsibility to remove, edit, or |
| 86 | +reject comments, commits, code, wiki edits, issues, and other contributions |
| 87 | +that are not aligned to this Code of Conduct, or to ban temporarily or |
| 88 | +permanently any contributor for other behaviors that they deem inappropriate, |
| 89 | +threatening, offensive, or harmful. |
| 90 | + |
| 91 | +### Scope |
| 92 | + |
| 93 | +This Code of Conduct applies both within project spaces and in public spaces |
| 94 | +when an individual is representing the project or its community. Examples of |
| 95 | +representing a project or community include using an official project e-mail |
| 96 | +address, posting via an official social media account, or acting as an appointed |
| 97 | +representative at an online or offline event. Representation of a project may be |
| 98 | +further defined and clarified by project maintainers. |
| 99 | + |
| 100 | +### Enforcement |
| 101 | + |
| 102 | +Instances of abusive, harassing, or otherwise unacceptable behavior may be |
| 103 | +reported by contacting the project team at [email protected]. All |
| 104 | +complaints will be reviewed and investigated and will result in a response that |
| 105 | +is deemed necessary and appropriate to the circumstances. The project team is |
| 106 | +obligated to maintain confidentiality with regard to the reporter of an incident. |
| 107 | +Further details of specific enforcement policies may be posted separately. |
| 108 | + |
| 109 | +Project maintainers who do not follow or enforce the Code of Conduct in good |
| 110 | +faith may face temporary or permanent repercussions as determined by other |
| 111 | +members of the project's leadership. |
| 112 | + |
| 113 | +### Attribution |
| 114 | + |
| 115 | +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, |
| 116 | +available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html |
| 117 | + |
| 118 | +For answers to common questions about this code of conduct, see |
| 119 | +https://www.contributor-covenant.org/faq |
| 120 | + |
| 121 | +[homepage]: https://www.contributor-covenant.org |
0 commit comments