|
| 1 | +Contributing |
| 2 | +============ |
| 3 | + |
| 4 | +Contributions and issues are most welcome! All issues and pull requests are |
| 5 | +handled through github on the `dls_controls repository`_. Also, please check for |
| 6 | +any existing issues before filing a new one. If you have a great idea but it |
| 7 | +involves big changes, please file a ticket before making a pull request! We |
| 8 | +want to make sure you don't spend your time coding something that might not fit |
| 9 | +the scope of the project. |
| 10 | + |
| 11 | +.. _dls_controls repository: https://github.com/dls-controls/pythonIoc/issues |
| 12 | + |
| 13 | +Running the tests |
| 14 | +----------------- |
| 15 | + |
| 16 | +To get the source source code and run the unit tests, run:: |
| 17 | + |
| 18 | + $ git clone git://github.com/dls-controls/pythonIoc.git |
| 19 | + $ cd pythonIoc |
| 20 | + $ pipenv install --dev |
| 21 | + $ pipenv run tests |
| 22 | + |
| 23 | +While 100% code coverage does not make a library bug-free, it significantly |
| 24 | +reduces the number of easily caught bugs! Please make sure coverage remains the |
| 25 | +same or is improved by a pull request! |
| 26 | + |
| 27 | +Code Styling |
| 28 | +------------ |
| 29 | + |
| 30 | +The code in this repository conforms to standards set by the following tools: |
| 31 | + |
| 32 | +- flake8_ for style checks |
| 33 | + |
| 34 | +.. _flake8: http://flake8.pycqa.org/en/latest/ |
| 35 | + |
| 36 | +These tests will be run on code when running ``pipenv run tests`` and also |
| 37 | +automatically at check in. Please read the tool documentation for details |
| 38 | +on how to fix the errors it reports. |
| 39 | + |
| 40 | +Documentation |
| 41 | +------------- |
| 42 | + |
| 43 | +Documentation is contained in the ``docs`` directory and extracted from |
| 44 | +docstrings of the API. |
| 45 | + |
| 46 | +Docs follow the underlining convention:: |
| 47 | + |
| 48 | + Headling 1 (page title) |
| 49 | + ======================= |
| 50 | + |
| 51 | + Heading 2 |
| 52 | + --------- |
| 53 | + |
| 54 | + Heading 3 |
| 55 | + ~~~~~~~~~ |
| 56 | + |
| 57 | + |
| 58 | +You can build the docs from the project directory by running:: |
| 59 | + |
| 60 | + $ pipenv run docs |
| 61 | + $ firefox build/html/index.html |
| 62 | + |
| 63 | + |
| 64 | +Release Checklist |
| 65 | +----------------- |
| 66 | + |
| 67 | +Before a new release, please go through the following checklist: |
| 68 | + |
| 69 | +- Choose a new PEP440 compliant release number |
| 70 | +- Git tag the version with a message summarizing the changes |
| 71 | +- Push to github and the actions will make a release on pypi |
| 72 | +- Push to internal gitlab and do a dls-release.py of the tag |
0 commit comments