| 1 | # Contributing to quantum-chemistry-bonn |
| 2 | |
| 3 | First off, thank you for considering contributing to `quantum-chemistry-bonn`. |
| 4 | Please take a moment to review this guidelines to make the contribution process |
| 5 | simple and effective for all involved. |
| 6 | |
| 7 | Respecting these guidelines helps communicate that you respect the time of |
| 8 | the developers who manage and develop this open source project. |
| 9 | In return, they should return this respect by addressing your problem, |
| 10 | evaluating changes, and helping you handle your pull requests. |
| 11 | |
| 12 | |
| 13 | ## Reporting a Bug |
| 14 | |
| 15 | A bug is a *demonstratable problem* caused by the code in this repository. |
| 16 | Good bug reports are extremely valuable for us - thank you! |
| 17 | |
| 18 | Before opening a bug report: |
| 19 | |
| 20 | 1. Check if the issue has already been reported. |
| 21 | 2. Check if it still is an issue or has already been fixed? |
| 22 | Try to reproduce it with the latest version from the `master` branch. |
| 23 | 3. Isolate the problem and create a reduced test case. |
| 24 | |
| 25 | A good bug report should not leave others needing to chase you up for more |
| 26 | information. So please try to be as detailed as possible in your report, |
| 27 | answer at least these questions: |
| 28 | |
| 29 | 1. Which version of `quantum-chemistry-bonn` are you using? The current version is always |
| 30 | a subject to change, so be more specific. |
| 31 | 2. What is your environment (your laptop, the cluster of the university)? |
| 32 | 3. What steps will reproduce the issue? |
| 33 | We have to reproduce the issue, so we need all the input files. |
| 34 | 4. What would be the expected outcome? |
| 35 | 5. What did you see instead? |
| 36 | |
| 37 | All these details will help people to fix any potential bugs. |
| 38 | |
| 39 | |
| 40 | ## Suggesting a New Feature |
| 41 | |
| 42 | Feature requests are welcome. But take a moment to find out if your idea fits |
| 43 | the scope and goals of the project. It is up to you to provide a strong |
| 44 | argument to convince the project's developers of the benefits of this feature. |
| 45 | Please provide as much detail and context as possible. |
| 46 | |
| 47 | |
| 48 | ## Implementing a New Feature |
| 49 | |
| 50 | Contributions are welcome via Github pull requests. |
| 51 | |
| 52 | - Each pull request should implement *one* feature or fix *one* bug. |
| 53 | If you want to add or fix more than one thing, submit more than one |
| 54 | pull request. |
| 55 | - Do not commit changes to files that are irrelevant to your feature or |
| 56 | bugfix (*e.g.* `.gitignore`). |
| 57 | - Be willing to accept criticism and work on improving your code. |
| 58 | - Make sure the code compiles and the tests run successful on more than |
| 59 | your local machine (*e.g.* on the cluster of your university). |
| 60 | - Please sign-off your commits |
| 61 | |
| 62 | |
| 63 | ### For New Contributors |
| 64 | |
| 65 | If you never created a pull request before, welcome :tada:. |
| 66 | You can learn how from [this great tutorial](https://app.egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github) |
| 67 | |
| 68 | Don't know where to start? |
| 69 | You can start by looking through these [issues](https://github.com/chselz/quantum-chemistry-bonn/issues). |
| 70 | |
| 71 | |
| 72 | ## Sign Your Work |
| 73 | |
| 74 | The sign-off is a simple line at the end of the explanation for a commit. All |
| 75 | commits needs to be signed. Your signature certifies that you wrote the patch or |
| 76 | otherwise have the right to contribute the material. The rules are pretty simple, |
| 77 | if you can certify the below (from [developercertificate.org](https://developercertificate.org/)): |
| 78 | |
| 79 | ``` |
| 80 | Developer Certificate of Origin |
| 81 | Version 1.1 |
| 82 | |
| 83 | Copyright (C) 2004, 2006 The Linux Foundation and its contributors. |
| 84 | 1 Letterman Drive |
| 85 | Suite D4700 |
| 86 | San Francisco, CA, 94129 |
| 87 | |
| 88 | Everyone is permitted to copy and distribute verbatim copies of this |
| 89 | license document, but changing it is not allowed. |
| 90 | |
| 91 | Developer's Certificate of Origin 1.1 |
| 92 | |
| 93 | By making a contribution to this project, I certify that: |
| 94 | |
| 95 | (a) The contribution was created in whole or in part by me and I |
| 96 | have the right to submit it under the open source license |
| 97 | indicated in the file; or |
| 98 | |
| 99 | (b) The contribution is based upon previous work that, to the best |
| 100 | of my knowledge, is covered under an appropriate open source |
| 101 | license and I have the right under that license to submit that |
| 102 | work with modifications, whether created in whole or in part |
| 103 | by me, under the same open source license (unless I am |
| 104 | permitted to submit under a different license), as indicated |
| 105 | in the file; or |
| 106 | |
| 107 | (c) The contribution was provided directly to me by some other |
| 108 | person who certified (a), (b) or (c) and I have not modified |
| 109 | it. |
| 110 | |
| 111 | (d) I understand and agree that this project and the contribution |
| 112 | are public and that a record of the contribution (including all |
| 113 | personal information I submit with it, including my sign-off) is |
| 114 | maintained indefinitely and may be redistributed consistent with |
| 115 | this project or the open source license(s) involved. |
| 116 | ``` |
| 117 | |
| 118 | Then you just add a line to every git commit message: |
| 119 | |
| 120 | Signed-off-by: Joe Smith <[email protected]> |
| 121 | |
| 122 | Use your real name (sorry, no pseudonyms or anonymous contributions.) |
| 123 | |
| 124 | If you set your `user.name` and `user.email` git configs, you can sign your |
| 125 | commit automatically with `git commit -s`. |