9
9
10
10
![ GitHub tag (latest SemVer pre-release)] ( https://img.shields.io/github/v/tag/informaticsmatters/data-manager-jupyter-operator?include_prereleases )
11
11
12
+ [ ![ Conventional Commits] ( https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg )] ( https://conventionalcommits.org )
13
+ [ ![ pre-commit] ( https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white )] ( https://github.com/pre-commit/pre-commit )
14
+ [ ![ Code style: black] ( https://img.shields.io/badge/code%20style-black-000000.svg )] ( https://github.com/psf/black )
15
+
12
16
This repo contains a Kubernetes _ Operator_ based on the [ kopf] and [ kubernetes]
13
17
Python packages that is used by the ** Informatics Matters Data Manager API**
14
18
to create Jupyter Notebooks for the Data Manager service.
@@ -22,10 +26,32 @@ By default, the operator creates instances using the Jupyter image: -
22
26
23
27
Prerequisites: -
24
28
25
- - Python (ideally 3.9.x)
29
+ - Python
26
30
- Docker
27
31
- A kubernetes config file
28
32
33
+ ## Contributing
34
+ The project uses: -
35
+
36
+ - [ pre-commit] to enforce linting of files prior to committing them to the
37
+ upstream repository
38
+ - [ Commitizen] to enforce a [ Convention Commit] commit message format
39
+ - [ Black] as a code formatter
40
+
41
+ You ** MUST** comply with these choices in order to contribute to the project.
42
+
43
+ To get started review the pre-commit utility and the conventional commit style
44
+ and then set-up your local clone by following the ** Installation** and
45
+ ** Quick Start** sections: -
46
+
47
+ pip install -r build-requirements.txt
48
+ pre-commit install -t commit-msg -t pre-commit
49
+
50
+ Now the project's rules will run on every commit, and you can check the
51
+ current health of your clone with: -
52
+
53
+ pre-commit run --all-files
54
+
29
55
## Building the operator (local development)
30
56
The operator container, residing in the ` operator ` directory,
31
57
is automatically built and pushed to Docker Hub using GitHub Actions.
@@ -183,6 +209,10 @@ Both are exposed in the example parameter file `example-parameters.yaml`.
183
209
184
210
[ ansible ] : https://www.ansible.com
185
211
[ ansible galaxy ] : https://galaxy.ansible.com
212
+ [ black ] : https://black.readthedocs.io/en/stable
186
213
[ certificate manager ] : https://cert-manager.io/docs/installation/kubernetes/
214
+ [ commitizen ] : https://commitizen-tools.github.io/commitizen/
215
+ [ conventional commit ] : https://www.conventionalcommits.org/en/v1.0.0/
187
216
[ kopf ] : https://pypi.org/project/kopf/
188
217
[ kubernetes ] : https://pypi.org/project/kubernetes/
218
+ [ pre-commit ] : https://pre-commit.com
0 commit comments