Debian Codegraph @

docs/pages/contributors.rst

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