2016-03-08 15:34:20 +00:00
|
|
|
Contributing
|
2023-08-08 22:52:01 +00:00
|
|
|
============
|
2016-03-08 15:34:20 +00:00
|
|
|
|
2016-04-02 09:55:08 +00:00
|
|
|
This project is open to any kind of contribution. You can help with improving the documentation, adding fixes to the
|
|
|
|
code, providing test cases in code or as a description or just spreading the word. Please feel free to create an
|
|
|
|
issue or pull request.
|
2016-03-08 15:34:20 +00:00
|
|
|
In order to reduce the amount of work for everyone please try to adhere to good practice.
|
|
|
|
|
|
|
|
The pull requests and issues will be prefilled with templates. Please fill in your information where applicable.
|
|
|
|
|
2020-05-31 14:21:42 +00:00
|
|
|
This project uses `semantic versioning <https://semver.org/>`_ and tries to adhere to the proposed rules as
|
2016-04-13 22:16:06 +00:00
|
|
|
well as possible.
|
2016-03-08 15:34:20 +00:00
|
|
|
|
2017-05-25 23:55:30 +00:00
|
|
|
Author-list
|
|
|
|
-----------
|
|
|
|
|
|
|
|
This project keeps a list of authors. This can be auto-generated by calling `./doc/generate-authors.sh`.
|
|
|
|
When contributing the first time, please include a commit with the output of this script in place.
|
|
|
|
|
|
|
|
When you change your username or mail-address, please also update the `.mailmap` and the authors-list.
|
2023-05-18 14:33:20 +00:00
|
|
|
You can find a good documentation on the mapping-feature in the
|
|
|
|
`documentation of git-shortlog <https://git-scm.com/docs/git-shortlog#_mapping_authors>`_.
|
2017-05-25 23:55:30 +00:00
|
|
|
|
2016-04-02 09:55:08 +00:00
|
|
|
Style-Guide
|
|
|
|
-----------
|
|
|
|
|
|
|
|
When writing code please try to stick to these rules.
|
|
|
|
|
2023-05-18 14:33:20 +00:00
|
|
|
Black Code Style
|
|
|
|
^^^^^^^^^^^^^^^^
|
|
|
|
This project is formatted with the auto formatter `black <https://github.com/psf/black>`_.
|
|
|
|
Please format your contributions with black, otherwise they will be rejected.
|
2016-04-02 09:55:08 +00:00
|
|
|
|
|
|
|
GIT
|
|
|
|
^^^
|
2020-05-08 21:48:48 +00:00
|
|
|
The master-branch contains the main development of the project. A release to PyPi is marked with a tag
|
|
|
|
corresponding to the version. Issues are closed when they have been resolved by merging into the master-branch.
|
|
|
|
When you have a change to make, begin by creating a new branch from the HEAD of `python-escpos/master`.
|
2016-04-13 22:16:06 +00:00
|
|
|
|
|
|
|
Please try to group your commits into logical units. If you need to tidy up your branch, you can make use of a
|
|
|
|
git feature called an 'interactive rebase' before making a pull request. A small, self-contained change-set is
|
|
|
|
easier to review, and improves the chance of your code being merged.
|
|
|
|
Please also make sure that before creating your PR, your branch is rebased on a recent commit or you merged a recent
|
|
|
|
commit into your branch. This way you can ensure that your PR is without merge conflicts.
|
2016-04-02 09:55:08 +00:00
|
|
|
|
|
|
|
Docstrings
|
|
|
|
^^^^^^^^^^
|
|
|
|
This project tries to have a good documentation.
|
|
|
|
Please add a docstring to every method and class. Have a look at existing methods and classes for the style.
|
|
|
|
We use basically standard rst-docstrings for Sphinx.
|
|
|
|
|
|
|
|
Test
|
|
|
|
^^^^
|
|
|
|
Try to write tests whenever possible. Our goal for the future is 100% coverage.
|
|
|
|
We are currently using `nose` but might change in the future.
|
|
|
|
You can copy the structure from other testcases. Please remember to adapt the docstrings.
|
|
|
|
|
|
|
|
Further reading
|
|
|
|
^^^^^^^^^^^^^^^
|
|
|
|
For further best practices and hints on contributing please see the
|
2020-05-31 14:21:42 +00:00
|
|
|
`contribution-guide <https://www.contribution-guide.org/>`_. Should there be any contradictions between this guide
|
2016-04-02 09:55:08 +00:00
|
|
|
and the linked one, please stick to this text.
|
|
|
|
Aside from that feel free to create an issue or write an email if anything is unclear.
|
|
|
|
|
|
|
|
Thank you for your contribution!
|