Debian Codegraph @

CONTRIBUTING.md

raw
1 <!---
2 # SPDX-FileCopyrightText: © 2024 Christian BUHTZ <[email protected]>
3 #
4 # SPDX-License-Identifier: GPL-3.0-only
5 #
6 # This file is part of the program "Hyperorg" which is released under GNU
7 # General Public License v3 (GPLv3).
8 # See folder LICENSES or go to <https://www.gnu.org/licenses/#GPL>.
9 -->
10 # How to contribute to _Hyperog_
11
12 😊 **Thanks for taking the time to contribute!**
13
14 The maintenance team will welcome all types of contributions. No contribution
15 will be rejected just because it doesn't fit to our quality standards,
16 guidelines or rules. We are willing to guide and mentorship new contributors
17 through the process.
18
19 <sub>September 2025</sub>
20
21 ## Table of Contents
22 <!-- TOC start (generated with https://github.com/derlin/bitdowntoc) -->
23 - [How to submit changes and report bugs?](#how-to-submit-changes-and-report-bugs)
24 - [Setup environment, installing and testing](#setup-environment-installing-and-testing)
25 - [Recommendations & Best practices](#recommendations-best-practices)
26 - [Branching model](#branching-model)
27 - [Development documentation](#development-documentation)
28 - [Licensing of contributed material](#licensing-of-contributed-material)
29 <!-- TOC end -->
30
31 # How to submit changes and report bugs?
32 These external resources explain how to accomplishing various tasks through contribution:
33
34 - [Opening an issue or bug report](https://opensource.guide/how-to-contribute/#opening-an-issue)
35 - [Opening a pull request](https://opensource.guide/how-to-contribute/#opening-a-pull-request)
36
37 # Setup environment, installing and testing
38
39 Fork the repository and clone it to your local machine.
40 Please **always make a new branch** when preparing a _Pull Request_ ("PR") and
41 **baseline it on** the repositories default branch `latest`.
42
43 $ git clone [email protected]:YOUR_USERNAME/hyperorg.git
44 $ cd hyperorg
45 $ git checkout --branch mynewfeature
46
47 Create a virtual environment, activate it and install _Hyperorg_ (dependencies
48 should be handled automatically by `pip`):
49
50 $ python3 -m venv .venv
51 (.venv) $ source venv/bin/activate
52 (.venv) $ python3 -m pip install --editable .[develop]
53
54 Run the test suite using `unittest` or `pytest` with one of the two following
55 commands:
56
57 (.venv) $ python3 -m unittest
58 (.venv) $ pytest
59
60 Create and add your modifications and push it to your remote repository:
61
62 (.venv) $ edit myfancynewfeature.py
63 (.venv) $ git add myfancynewfeature.py
64 (.venv) $ git commit -am 'feat: fancy colors'
65 (.venv) $ git push
66
67 Go to your repository at [Codeberg.org](https://codeberg.org) and open a _Pull
68 Request_.
69
70 # Branching model
71
72 This project utilizes the
73 [OneFlow](https://www.endoflineblog.com/oneflow-a-git-branching-model-and-workflow)
74 branching model, initially outlined by
75 [Adam Ruka](https://github.com/skinny85).
76 Its key aspects and rules are straightforward: there exists only one
77 branch (named `latest` in this repository), and stable releases are denoted by
78 annotated tags using the version number (e.g. `v0.1.1`).
79
80 # Recommendations & Best practices
81
82 Please take the following best practices into account if possible (to reduce
83 the work load of the maintainers and to increase the chance that your pull
84 request is accepted):
85
86 - Follow [PEP 8](https://peps.python.org/pep-0008/) as a minimal Style Guide
87 for Python Code.
88 - Follow [Google Style Guide](https://sphinxcontrib-napoleon.readthedocs.org/en/latest/example_google.html) for
89 docstrings.
90 See also [this example in PyDoctor's documentation](https://pydoctor.readthedocs.io/en/latest/docformat/google_demo/index.html).
91 - Using automatic formatters like `black` is not recommended. Please **mention
92 the use** of them when opening a pull request.
93 - Run the test suite before you open a Pull Request.
94 - Try to create new tests if appropriate. Use Python's regular `unittest`
95 instead of `pytest`. If you know the difference please try follow the
96 _Classical (aka Detroit) school_ instead of _London (aka mockist) school_.
97
98 # Development documentation
99 - Details are described in the docstrings. Please open an bug report if you
100 miss something.
101 - Concecpt, code structure and design decisions described in
102 `examples/org/20250912150340-hyperorg_design_concept.org`.
103
104 # Licensing of contributed material
105
106 Please keep in mind that code, documentation and other material
107 submitted to the project are considered licensed under the same terms (see
108 [LICENSES](LICENSES)) as the rest of the work. The project does use the
109 specifications from [REUSE Software](https://reuse.software) and
110 [SPDX](https://spdx.github.io/spdx-spec) to store license and copyright
111 information. See the projects [REUSE compliance status](https://api.reuse.software/info/codeberg.org/buhtz/hyperorg).
112
113 <sub>June 2026</sub>