|
| 1 | +.. highlight:: shell |
| 2 | + |
| 3 | +============ |
| 4 | +Contributing |
| 5 | +============ |
| 6 | + |
| 7 | +Contributions are welcome, and they are greatly appreciated! Every little bit |
| 8 | +helps, and credit will always be given. |
| 9 | + |
| 10 | +You can contribute in many ways: |
| 11 | + |
| 12 | +Types of Contributions |
| 13 | +---------------------- |
| 14 | + |
| 15 | +Report Bugs |
| 16 | +~~~~~~~~~~~ |
| 17 | + |
| 18 | +Report bugs at https://github.com/chuangw46/eda_utils_py/issues. |
| 19 | + |
| 20 | +If you are reporting a bug, please include: |
| 21 | + |
| 22 | +* Your operating system name and version. |
| 23 | +* Any details about your local setup that might be helpful in troubleshooting. |
| 24 | +* Detailed steps to reproduce the bug. |
| 25 | + |
| 26 | +Fix Bugs |
| 27 | +~~~~~~~~ |
| 28 | + |
| 29 | +Look through the GitHub issues for bugs. Anything tagged with "bug" and "help |
| 30 | +wanted" is open to whoever wants to implement it. |
| 31 | + |
| 32 | +Implement Features |
| 33 | +~~~~~~~~~~~~~~~~~~ |
| 34 | + |
| 35 | +Look through the GitHub issues for features. Anything tagged with "enhancement" |
| 36 | +and "help wanted" is open to whoever wants to implement it. |
| 37 | + |
| 38 | +Write Documentation |
| 39 | +~~~~~~~~~~~~~~~~~~~ |
| 40 | + |
| 41 | +eda_utils_py could always use more documentation, whether as part of the |
| 42 | +official eda_utils_py docs, in docstrings, or even on the web in blog posts, |
| 43 | +articles, and such. |
| 44 | + |
| 45 | +Submit Feedback |
| 46 | +~~~~~~~~~~~~~~~ |
| 47 | + |
| 48 | +The best way to send feedback is to file an issue at https://github.com/chuangw46/eda_utils_py/issues. |
| 49 | + |
| 50 | +If you are proposing a feature: |
| 51 | + |
| 52 | +* Explain in detail how it would work. |
| 53 | +* Keep the scope as narrow as possible, to make it easier to implement. |
| 54 | +* Remember that this is a volunteer-driven project, and that contributions |
| 55 | + are welcome :) |
| 56 | + |
| 57 | +Get Started! |
| 58 | +------------ |
| 59 | + |
| 60 | +Ready to contribute? Here's how to set up `eda_utils_py` for local development. |
| 61 | + |
| 62 | +1. Fork the `eda_utils_py` repo on GitHub. |
| 63 | +2. Clone your fork locally:: |
| 64 | + |
| 65 | + $ git clone git@github.com:your_name_here/eda_utils_py.git |
| 66 | + |
| 67 | +3. Install your local copy (it is recommended to do this with a virtual environment). The method of installation will depend on the packaging library being used. |
| 68 | + For example, if `setuptools` is being used (a setup.py file is present), install eda_utils_py with: |
| 69 | + |
| 70 | + .. code-block:: console |
| 71 | +
|
| 72 | + $ python setup.py install |
| 73 | +
|
| 74 | + If `poetry` is being used (poetry.lock and pyproject.toml files are present), install eda_utils_py with: |
| 75 | + |
| 76 | + .. code-block:: console |
| 77 | +
|
| 78 | + $ poetry install |
| 79 | +
|
| 80 | +4. Create a branch for local development and make your changes locally:: |
| 81 | + |
| 82 | + $ git checkout -b name-of-your-bugfix-or-feature |
| 83 | + |
| 84 | +5. When you're done making changes, check that your changes conform to any code formatting requirements and pass any tests. |
| 85 | + For example, if the package uses the poetry package management library, black formatting style and pytest for testing:: |
| 86 | + |
| 87 | + $ poetry run black eda_utils_py |
| 88 | + $ poetry run pytest |
| 89 | + |
| 90 | +6. Commit your changes and push your branch to GitHub:: |
| 91 | + |
| 92 | + $ git add . |
| 93 | + $ git commit -m "Your detailed description of your changes." |
| 94 | + $ git push origin name-of-your-bugfix-or-feature |
| 95 | + |
| 96 | +7. Submit a pull request through the GitHub website. |
| 97 | + |
| 98 | +Pull Request Guidelines |
| 99 | +----------------------- |
| 100 | + |
| 101 | +Before you submit a pull request, check that it meets these guidelines: |
| 102 | + |
| 103 | +1. The pull request should include additional tests if appropriate. |
| 104 | +2. If the pull request adds functionality, the docs should be updated. |
| 105 | +3. The pull request should work for all currently supported operating systems and versions of Python. |
| 106 | + |
| 107 | +Code of Conduct |
| 108 | +--------------- |
| 109 | +Please note that the eda_utils_py project is released with a Contributor Code of Conduct. By contributing to this project you agree to abide by its terms. |
0 commit comments