1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
*******************
Contributor's Guide
*******************
Steps for Submitting Code
#########################
Contributions are very much welcomed and appreciated. Every little bit of help
counts, so do not hesitate!
1. Check for open issues, or open a new issue to start some discussion around
a feature idea or bug. There is a `contributor friendly tag`_ for issues
that should be ideal for people who are not familiar with the codebase yet.
2. Fork `the repository <https://github.com/tmbo/questionary>`_ on GitHub to
start making your changes.
3. `Install Poetry <https://python-poetry.org/docs/#installation>`_.
4. Configure development environment.
.. code-block:: console
make develop
5. Write some tests that show the bug is fixed or that the feature works as
expected.
6. Ensure your code passes the code quality checks by running
.. code-block:: console
$ make lint
7. Check all of the unit tests pass by running
.. code-block:: console
$ make test
8. Check the type checks pass by running
.. code-block:: console
$ make types
9. Send a pull request and bug the maintainer until it gets merged and
published 🙂
.. _`contributor friendly tag`: https://github.com/tmbo/questionary/issues?direction=desc&labels=good+first+issue&page=1&sort=upd
Bug Reports
###########
Bug reports should be made to the
`issue tracker <https://github.com/tmbo/questionary/issues>`_.
Please include enough information to reproduce the issue you are having.
A `minimal, reproducible example <https://stackoverflow.com/help/minimal-reproducible-example>`_
would be very helpful.
Feature Requests
################
Feature requests should be made to the
`issue tracker <https://github.com/tmbo/questionary/issues>`_.
Other
#####
Create a New Release
********************
1. Update the version number in ``questionary/version.py`` and
``pyproject.toml``.
2. Add a new section for the release to :ref:`changelog`.
3. Commit these changes.
4. ``git tag`` the commit with the release version number.
GitHub Actions will build and push the updated library to PyPi.
Create a Command Line Recording
*******************************
1. Install the following tools:
.. code-block:: console
$ brew install asciinema
$ npm install --global asciicast2gif
2. Start the recording with ``asciinema``:
.. code-block:: console
$ asciinema rec
3. Do the thing you want to record.
4. Convert to gif using ``asciicast2gif``:
.. code-block:: console
$ asciicast2gif -h 7 -w 120 -s 2 <recording> output.gif
|