Skip to content

Commit c497da8

Browse files
authored
[ALL] Add a pre-commit default configuration (#143)
1 parent 6115c0b commit c497da8

File tree

153 files changed

+1253
-1121
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+1253
-1121
lines changed

.github/workflows/realease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ jobs:
4747
- name: Run chart-releaser
4848
uses: helm/[email protected]
4949
env:
50-
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
50+
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

.pre-commit-config.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
repos:
2+
- repo: https://github.com/Gaspi/pre-commit-hooks
3+
rev: v0.3
4+
hooks:
5+
# Validate schemas using the jsonschema.validators package
6+
- id: validate-json-schemas
7+
args:
8+
# Forbid legacy https://json-schema.org/draft/2020-12/schema schema validator and suggest Draft 7 instead
9+
- --forbid-legacy
10+
# Ensure technically facultative attribute (such as `type`) are systematically specified
11+
- id: missing-attributes-schemas
12+
args:
13+
# Also require `items` to be systematically specified for arrays
14+
- --check-items
15+
# Also require `properties` to be systematically specified for object
16+
- --check-properties
17+
# Also require `properties` to be systematically specified for object
18+
- --check-defaults
19+
- id: version-bump
20+
args:
21+
- --branch
22+
- main
23+
24+
- repo: https://github.com/pre-commit/pre-commit-hooks
25+
rev: v5.0.0
26+
hooks:
27+
# Check yaml files except for Helm templates
28+
- id: check-yaml
29+
exclude: "/(templates|tests)/"
30+
# Check empty new line before EOF (ignore generated charts)
31+
- id: end-of-file-fixer
32+
# Check trailing whitespaces (ignore generated charts)
33+
- id: trailing-whitespace
34+
35+
# Run `helm lint` on all (modified) charts: this may require a manual `helm dep update`:
36+
# ls charts | xargs -i{} bash -c "cd charts/{} && helm dep update"
37+
- repo: https://github.com/gruntwork-io/pre-commit
38+
rev: v0.1.15
39+
hooks:
40+
- id: helmlint

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
This collection of Helm Charts is tailored for datascientists !
44
Most of this helm-charts are based on the [bitnami charts](https://github.com/bitnami/charts).
5-
It is primarly designed to work with [Onyxia](https://github.com/inseefrlab/onyxia) and we recommand you to use those from bitnami if you don't use Onyxia.
6-
See the other repository ([Helm charts](https://github.com/inseefrlab/helm-charts-interactive-services)) for interactive focused charts.
5+
It is primarly designed to work with [Onyxia](https://github.com/inseefrlab/onyxia) and we recommand you to use those from bitnami if you don't use Onyxia.
6+
See the other repository ([Helm charts](https://github.com/inseefrlab/helm-charts-interactive-services)) for interactive focused charts.
77

88
To use the repo on helm (version 3+) :
99
```
1010
helm repo add inseefrlab-datascience https://inseefrlab.github.io/helm-charts-databases
11-
```
11+
```
1212

1313
The repo is also browsable directly https://inseefrlab.github.io/helm-charts-databases/index.yaml
1414

15-
Contributions are welcome, feel free to open issues or submit pull requests :)
15+
Contributions are welcome, feel free to open issues or submit pull requests :)

charts/cloudbeaver-chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type: application
2222
# This is the chart version. This version number should be incremented each time you make changes
2323
# to the chart and its templates, including the app version.
2424
# Versions are expected to follow Semantic Versioning (https://semver.org/)
25-
version: 2.0.5
25+
version: 2.0.6
2626

2727
# This is the version number of the application being deployed. This version number should be
2828
# incremented each time you make changes to the application. Versions are not expected to

charts/cloudbeaver-chart/templates/configmap-cb.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ data:
3030
password : {{ .Values.postgresql.auth.password }} ,
3131
initialDataConfiguration: "conf/initial-data.conf",
3232
pool: {
33-
minIdleConnections: 4,
33+
minIdleConnections: 4,
3434
maxIdleConnections: 10,
3535
maxConnections: 100,
3636
validationQuery: "SELECT 1"
@@ -68,4 +68,4 @@ data:
6868
6969
}
7070
71-
}
71+
}

charts/cloudbeaver-chart/templates/configmap-product.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ data:
3333
disabled: false
3434
},
3535
sql.proposals.insert.table.alias: true
36-
}
36+
}

charts/cloudbeaver-chart/templates/deployment.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ spec:
7272
port: http
7373
resources:
7474
{{- toYaml .Values.resources | nindent 12 }}
75-
75+
7676
volumes:
7777
- name: cb-config
78-
configMap:
78+
configMap:
7979
name: {{ include "library-chart.fullname" . }}-cb-config
8080
- name: product-config
8181
configMap:
@@ -97,12 +97,12 @@ spec:
9797
until printf "." && nc -z -w 2 {{ .Values.postgresql.fullnameOverride }} 5432; do
9898
sleep 2;
9999
done;
100-
echo 'PostgreSQL OK ✓'
100+
echo 'PostgreSQL OK ✓'
101101
resources:
102102
requests:
103103
cpu: "0.05"
104104
memory: "128Mi"
105-
{{- with .Values.nodeSelector }}
105+
{{- with .Values.nodeSelector }}
106106
nodeSelector:
107107
{{- toYaml . | nindent 8 }}
108108
{{- end }}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{ include "library-chart.ingress" . }}
1+
{{ include "library-chart.ingress" . }}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{ include "library-chart.networkPolicyIngress" . }}
1+
{{ include "library-chart.networkPolicyIngress" . }}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{ include "library-chart.networkPolicy" . }}
1+
{{ include "library-chart.networkPolicy" . }}

0 commit comments

Comments
 (0)