File: CONTRIBUTING.rst

package info (click to toggle)
python-ssdeep 3.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 696 kB
  • sloc: ansic: 1,614; cpp: 1,586; python: 590; makefile: 194; sh: 32
file content (95 lines) | stat: -rw-r--r-- 2,550 bytes parent folder | download | duplicates (2)
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
..
    This file is part of the python-ssdeep

    SPDX-FileCopyrightText: 2017-2020 PhiBo (DinoTools)

    SPDX-License-Identifier: LGPL-3.0-or-later

Contributing
============

First of all, thank you for your interest in contributing to this project!


Filing bug reports
------------------

Bug reports are very welcome.
Please file them on the `GitHub issue tracker`_.
Good bug reports come with extensive descriptions of the error and how to reproduce it.
Try to use the provided issue template, it should be displayed by the GitHub website when creating a new issue.


Patches
-------

All patches should be submitted in the form of pull requests to the main repository, `DinoTools/python-ssdeep`_.
These pull requests should satisfy the following properties:

Code
^^^^

- A pull request should focus on **one** particular improvement or change.
- Create different pull requests for unrelated features or bugfixes.
- Python code should follow `PEP 8`_, especially in the "do what code around you does" sense.
- Add test if possible


Documentation
^^^^^^^^^^^^^

When introducing new functionality, please remember to write documentation.

First time setup
^^^^^^^^^^^^^^^^

- Download and install the `latest version of git`_
- Configure git with your username and email

.. code::

    $ git config user.name 'Your Name'
    $ git config user.email 'your.email@example.org'

- Make sure you have a `GitHub account`_
- Fork `DinoTools/python-ssdeep`_ to your GitHub account by using the Fork button
- Clone the main repository locally

.. code::

    $ git clone https://github.com/DinoTools/python-ssdeep.git
    $ cd python-ssdeep

- Add your fork as a remote to push your work to. Replace <username> with your username.

.. code::

    $ git remote add fork https://github.com/<username>/python-ssdeep

- Install `pre-commit`_ by using a virtualenv.

.. code::

    $ python3 -m venv venv_git
    $ source venv_git/bin/activate
    $ pip install pre-commit

- Install pre-commit hooks.

.. code::

    $ pre-commit install

Review
------

Finally, pull requests must be reviewed before merging.
Everyone can perform reviews; this is a very valuable way to contribute, and is highly encouraged.


.. _GitHub issue tracker: https://github.com/DinoTools/python-ssdeep/issues
.. _DinoTools/python-ssdeep: https://github.com/DinoTools/python-ssdeep
.. _PEP 8: https://www.python.org/dev/peps/pep-0008/
.. _latest version of git: https://git-scm.com/downloads
.. _GitHub account: https://github.com/join
.. _pre-commit: https://pre-commit.com/