|
| 1 | +.. highlight:: shell |
| 2 | + |
| 3 | +============ |
| 4 | +Contributing |
| 5 | +============ |
| 6 | + |
| 7 | +Contributions are welcome, and they are greatly appreciated! Every |
| 8 | +little bit 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/Pylons/venusian/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" |
| 30 | +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 "feature" |
| 36 | +is open to whoever wants to implement it. |
| 37 | + |
| 38 | +Write Documentation |
| 39 | +~~~~~~~~~~~~~~~~~~~ |
| 40 | + |
| 41 | +venusian could always use more documentation, whether as part of the |
| 42 | +official venusian 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 |
| 49 | +https://github.com/Pylons/venusian/issues. |
| 50 | + |
| 51 | +If you are proposing a feature: |
| 52 | + |
| 53 | +* Explain in detail how it would work. |
| 54 | +* Keep the scope as narrow as possible, to make it easier to implement. |
| 55 | +* Remember that this is a volunteer-driven project, and that contributions |
| 56 | + are welcome :) |
| 57 | + |
| 58 | +Get Started! |
| 59 | +------------ |
| 60 | + |
| 61 | +Ready to contribute? Here's how to set up `venusian` for local development. |
| 62 | + |
| 63 | +1. Fork the `venusian` repo on GitHub. |
| 64 | +2. Clone your fork locally:: |
| 65 | + |
| 66 | + $ git clone [email protected]:your_name_here/venusian.git |
| 67 | + |
| 68 | +3. Install your local copy into a virtualenv:: |
| 69 | + |
| 70 | + $ python3 -m venv env |
| 71 | + $ env/bin/pip install -e .[docs,testing] |
| 72 | + $ env/bin/pip install tox |
| 73 | + |
| 74 | +4. Create a branch for local development:: |
| 75 | + |
| 76 | + $ git checkout -b name-of-your-bugfix-or-feature |
| 77 | + |
| 78 | + Now you can make your changes locally. |
| 79 | + |
| 80 | +5. When you're done making changes, check that your changes pass flake8 and |
| 81 | + the tests, including testing other Python versions with tox:: |
| 82 | + |
| 83 | + $ env/bin/tox |
| 84 | + |
| 85 | +6. Commit your changes and push your branch to GitHub:: |
| 86 | + |
| 87 | + $ git add . |
| 88 | + $ git commit -m "Your detailed description of your changes." |
| 89 | + $ git push origin name-of-your-bugfix-or-feature |
| 90 | + |
| 91 | +7. Submit a pull request through the GitHub website. |
| 92 | + |
| 93 | +Pull Request Guidelines |
| 94 | +----------------------- |
| 95 | + |
| 96 | +Before you submit a pull request, check that it meets these guidelines: |
| 97 | + |
| 98 | +1. The pull request should include tests. |
| 99 | +2. If the pull request adds functionality, the docs should be updated. Put |
| 100 | + your new functionality into a function with a docstring, and add the |
| 101 | + feature to the list in README.rst. |
| 102 | +3. The pull request should work for all supported versions of Python |
| 103 | + (see the `classifiers` section in |
| 104 | + https://github.com/Pylons/venusian/blob/main/setup.cfg). Verify |
| 105 | + that the "All checks have passed" flag is green on the "Conversation" |
| 106 | + page of the PR before merging. |
| 107 | + |
| 108 | +Tips |
| 109 | +---- |
| 110 | + |
| 111 | +To run a subset of tests:: |
| 112 | + |
| 113 | +$ env/bin/py.test tests.test_venusian |
0 commit comments