c2cciutils 1.7.0.dev174__py3-none-any.whl → 1.7.3.dev2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of c2cciutils might be problematic. Click here for more details.

@@ -4,292 +4,63 @@ Automatically generated file from a JSON schema.
4
4
 
5
5
  from typing import Any, Literal, TypedDict, Union
6
6
 
7
- AUDIT_DEFAULT = {"snyk": True, "outdated_versions": True}
8
- """ Default value of the field path 'configuration audit' """
9
7
 
10
-
11
- AUDIT_SNYK_FILES_NO_INSTALL_DEFAULT: list[Any] = []
12
- """ Default value of the field path 'Audit Snyk config files_no_install' """
13
-
14
-
15
- AUDIT_SNYK_FIX_ARGUMENTS_DEFAULT = ["--all-projects"]
16
- """ Default value of the field path 'Audit Snyk config fix_arguments' """
17
-
18
-
19
- AUDIT_SNYK_FIX_PULL_REQUEST_ARGUMENTS_DEFAULT = ["--fill", "--label=dependencies"]
20
- """ Default value of the field path 'Audit Snyk config fix_github_create_pull_request_arguments' """
21
-
22
-
23
- AUDIT_SNYK_MONITOR_ARGUMENTS_DEFAULT = ["--all-projects"]
24
- """ Default value of the field path 'Audit Snyk config monitor_arguments' """
25
-
26
-
27
- AUDIT_SNYK_PIPENV_SYNC_ARGUMENTS_DEFAULT: list[Any] = []
28
- """ Default value of the field path 'Audit Snyk config pipenv_sync_arguments' """
29
-
30
-
31
- AUDIT_SNYK_PIP_INSTALL_ARGUMENTS_DEFAULT = ["--user"]
32
- """ Default value of the field path 'Audit Snyk config pip_install_arguments' """
33
-
34
-
35
- AUDIT_SNYK_TEST_ARGUMENTS_DEFAULT = ["--all-projects", "--fail-on=all", "--severity-threshold=medium"]
36
- """ Default value of the field path 'Audit Snyk config test_arguments' """
37
-
38
-
39
- class Audit(TypedDict, total=False):
40
- """
41
- Audit.
42
-
43
- The audit configuration
44
-
45
- default:
46
- outdated_versions: true
47
- snyk: true
48
- """
49
-
50
- outdated_versions: "AuditOutdatedVersions"
51
- """
52
- Audit outdated versions.
53
-
54
- Audit of outdated version
55
- """
56
-
57
- snyk: "AuditWithSnyk"
58
- """
59
- Audit with Snyk.
60
-
61
- The audit Snyk configuration
62
-
63
- Aggregation type: oneOf
64
- Subtype: "AuditSnykConfig"
65
- """
66
-
67
-
68
- AuditOutdatedVersions = bool
69
- """
70
- Audit outdated versions.
71
-
72
- Audit of outdated version
73
- """
74
-
75
-
76
- class AuditSnykConfig(TypedDict, total=False):
77
- """
78
- Audit Snyk config.
79
-
80
- The audit Pipfile configuration
81
- """
82
-
83
- test_arguments: list[str]
84
- """
85
- audit snyk test arguments.
86
-
87
- The Snyk test arguments
88
-
89
- default:
90
- - --all-projects
91
- - --fail-on=all
92
- - --severity-threshold=medium
93
- """
94
-
95
- monitor_arguments: list[str]
96
- """
97
- audit snyk monitor arguments.
98
-
99
- The Snyk monitor arguments
100
-
101
- default:
102
- - --all-projects
103
- """
104
-
105
- fix_arguments: list[str]
106
- """
107
- audit snyk fix arguments.
108
-
109
- The Snyk fix arguments
110
-
111
- default:
112
- - --all-projects
113
- """
114
-
115
- fix_github_create_pull_request_arguments: list[str]
116
- """
117
- audit snyk fix pull request arguments.
118
-
119
- The Snyk fix pull request extra arguments
120
-
121
- default:
122
- - --fill
123
- - --label=dependencies
124
- """
125
-
126
- pip_install_arguments: list[str]
8
+ class Configuration(TypedDict, total=False):
127
9
  """
128
- audit snyk pip install arguments.
10
+ configuration.
129
11
 
130
- The Snyk pip install arguments
131
-
132
- default:
133
- - --user
12
+ C2C CI utils configuration file
134
13
  """
135
14
 
136
- pipenv_sync_arguments: list[str]
15
+ print_versions: "PrintVersions"
137
16
  """
138
- audit snyk pipenv sync arguments.
139
-
140
- The Snyk pipenv sync arguments
17
+ Print versions.
141
18
 
142
- default:
143
- []
19
+ The print versions configuration
144
20
  """
145
21
 
146
- files_no_install: list[str]
22
+ publish: "Publish"
147
23
  """
148
- audit snyk files no install.
24
+ Publish.
149
25
 
150
- The list of files to not install
26
+ The publishing configurations
151
27
 
152
28
  default:
153
- []
29
+ docker:
30
+ images: <auto-detected>
31
+ helm:
32
+ folders: <auto-detected>
33
+ versions:
34
+ - version_tag
35
+ pypi:
36
+ packages: <auto-detected>
37
+ versions:
38
+ - version_tag
154
39
  """
155
40
 
156
-
157
- AuditWithSnyk = Union["AuditSnykConfig", bool]
158
- """
159
- Audit with Snyk.
160
-
161
- The audit Snyk configuration
162
-
163
- Aggregation type: oneOf
164
- Subtype: "AuditSnykConfig"
165
- """
166
-
167
-
168
- CODESPELL_ARGUMENTS_DEFAULT = ["--quiet-level=2", "--check-filenames", "--ignore-words-list=ro"]
169
- """ Default value of the field path 'Codespell arguments' """
170
-
171
-
172
- CODESPELL_DICTIONARIES_DEFAULT = ["clear", "rare", "informal", "code", "names", "en-GB_to_en-US"]
173
- """ Default value of the field path 'Codespell internal_dictionaries' """
174
-
175
-
176
- CODESPELL_IGNORE_REGULAR_EXPRESSION_DEFAULT = ["(.*/)?poetry\\.lock", "(.*/)?package-lock\\.json"]
177
- """ Default value of the field path 'Codespell ignore_re' """
178
-
179
-
180
- class Codespell(TypedDict, total=False):
41
+ version: "Version"
181
42
  """
182
- Codespell.
43
+ Version.
183
44
 
184
- The codespell check configuration
45
+ The version configurations
185
46
  """
186
47
 
187
- internal_dictionaries: list[str]
48
+ k8s: "K8SConfiguration"
188
49
  """
189
- codespell dictionaries.
190
-
191
- List of argument that will be added to the codespell command
50
+ K8s configuration.
192
51
 
193
52
  default:
194
- - clear
195
- - rare
196
- - informal
197
- - code
198
- - names
199
- - en-GB_to_en-US
200
- """
201
-
202
- arguments: list[str]
53
+ {}
203
54
  """
204
- codespell arguments.
205
55
 
206
- List of argument that will be added to the codespell command
207
-
208
- default:
209
- - --quiet-level=2
210
- - --check-filenames
211
- - --ignore-words-list=ro
56
+ dpkg: "Dpkg"
212
57
  """
58
+ dpkg.
213
59
 
214
- ignore_re: list[str]
215
- r"""
216
- codespell ignore regular expression.
217
-
218
- List of regular expression that should be ignored
219
-
220
- default:
221
- - (.*/)?poetry\.lock
222
- - (.*/)?package-lock\.json
60
+ The configuration use t manage the dpkg packages
223
61
  """
224
62
 
225
63
 
226
- # configuration.
227
- #
228
- # C2C CI utils configuration file
229
- Configuration = TypedDict(
230
- "Configuration",
231
- {
232
- # Print versions.
233
- #
234
- # The print versions configuration
235
- "print_versions": "PrintVersions",
236
- # Codespell.
237
- #
238
- # The codespell check configuration
239
- "codespell": "Codespell",
240
- # Audit.
241
- #
242
- # The audit configuration
243
- #
244
- # default:
245
- # outdated_versions: true
246
- # snyk: true
247
- "audit": "Audit",
248
- # Pull request checks.
249
- #
250
- # The PR check configuration
251
- #
252
- # default:
253
- # add_issue_link: true
254
- # commits_messages: true
255
- # commits_spell: true
256
- # pull_request_labels: true
257
- # pull_request_spell: true
258
- "pr-checks": "PullRequestChecks",
259
- # Publish.
260
- #
261
- # The publishing configurations
262
- #
263
- # default:
264
- # docker:
265
- # images: <auto-detected>
266
- # helm:
267
- # folders: <auto-detected>
268
- # versions:
269
- # - version_tag
270
- # pypi:
271
- # packages: <auto-detected>
272
- # versions:
273
- # - version_tag
274
- "publish": "Publish",
275
- # Version.
276
- #
277
- # The version configurations
278
- "version": "Version",
279
- # K8s configuration.
280
- #
281
- # default:
282
- # {}
283
- "k8s": "K8SConfiguration",
284
- # dpkg.
285
- #
286
- # The configuration use t manage the dpkg packages
287
- "dpkg": "Dpkg",
288
- },
289
- total=False,
290
- )
291
-
292
-
293
64
  DB_CONFIGURATION_DEFAULT: dict[str, Any] = {}
294
65
  """ Default value of the field path 'K8s configuration db' """
295
66
 
@@ -313,49 +84,49 @@ DOCKER_REPOSITORY_DEFAULT = {
313
84
  """ Default value of the field path 'Publish Docker config repository' """
314
85
 
315
86
 
316
- # DB configuration.
317
- #
318
- # Database configuration
319
- #
320
- # default:
321
- # {}
87
+ # | DB configuration.
88
+ # |
89
+ # | Database configuration
90
+ # |
91
+ # | default:
92
+ # | {}
322
93
  DbConfiguration = TypedDict(
323
94
  "DbConfiguration",
324
95
  {
325
- # K8S DB chart options.
326
- #
327
- # default:
328
- # auth.postgresPassword: mySuperTestingPassword
329
- # persistence.enabled: 'false'
330
- # tls.autoGenerated: 'true'
331
- # tls.enabled: 'true'
332
- # volumePermissions.enabled: 'true'
96
+ # | K8S DB chart options.
97
+ # |
98
+ # | default:
99
+ # | auth.postgresPassword: mySuperTestingPassword
100
+ # | persistence.enabled: 'false'
101
+ # | tls.autoGenerated: 'true'
102
+ # | tls.enabled: 'true'
103
+ # | volumePermissions.enabled: 'true'
333
104
  "chart-options": dict[str, str],
334
105
  },
335
106
  total=False,
336
107
  )
337
108
 
338
109
 
339
- # dispatch config.
340
- #
341
- # Send a dispatch event to an other repository
342
- #
343
- # default:
344
- # {}
110
+ # | dispatch config.
111
+ # |
112
+ # | Send a dispatch event to an other repository
113
+ # |
114
+ # | default:
115
+ # | {}
345
116
  DispatchConfig = TypedDict(
346
117
  "DispatchConfig",
347
118
  {
348
- # Docker dispatch repository.
349
- #
350
- # The repository name to be triggered
351
- #
352
- # default: camptocamp/argocd-gs-gmf-apps
119
+ # | Docker dispatch repository.
120
+ # |
121
+ # | The repository name to be triggered
122
+ # |
123
+ # | default: camptocamp/argocd-gs-gmf-apps
353
124
  "repository": str,
354
- # Docker dispatch event type.
355
- #
356
- # The event type to be triggered
357
- #
358
- # default: image-update
125
+ # | Docker dispatch event type.
126
+ # |
127
+ # | The event type to be triggered
128
+ # |
129
+ # | default: image-update
359
130
  "event-type": str,
360
131
  },
361
132
  total=False,
@@ -384,22 +155,22 @@ class Dpkg(TypedDict, total=False):
384
155
  """
385
156
 
386
157
 
387
- # K3d configuration.
388
- #
389
- # default:
390
- # {}
158
+ # | K3d configuration.
159
+ # |
160
+ # | default:
161
+ # | {}
391
162
  K3DConfiguration = TypedDict(
392
163
  "K3DConfiguration",
393
164
  {
394
- # K3D install commands.
395
- #
396
- # default:
397
- # - - k3d
398
- # - cluster
399
- # - create
400
- # - test-cluster
401
- # - --no-lb
402
- # - --no-rollback
165
+ # | K3D install commands.
166
+ # |
167
+ # | default:
168
+ # | - - k3d
169
+ # | - cluster
170
+ # | - create
171
+ # | - test-cluster
172
+ # | - --no-lb
173
+ # | - --no-rollback
403
174
  "install-commands": list[list[str]],
404
175
  },
405
176
  total=False,
@@ -456,18 +227,15 @@ K8S_DB_CHART_OPTIONS_DEFAULT = {
456
227
 
457
228
 
458
229
  PRINT_VERSIONS_VERSIONS_DEFAULT = [
459
- {"name": "c2cciutils", "cmd": ["c2cciutils", "--version"]},
460
230
  {"name": "python", "cmd": ["python3", "--version"]},
461
231
  {"name": "pip", "cmd": ["python3", "-m", "pip", "--version"]},
462
- {"name": "twine", "cmd": ["twine", "--version"]},
463
232
  {"name": "node", "prefix": "node ", "cmd": ["node", "--version"]},
464
233
  {"name": "npm", "prefix": "npm ", "cmd": ["npm", "--version"]},
465
- {"name": "make", "cmd": ["make", "--version"], "prefix": "make "},
234
+ {"name": "make", "cmd": ["make", "--version"]},
466
235
  {"name": "docker", "cmd": ["docker", "--version"]},
467
- {"name": "docker-compose", "cmd": ["docker-compose", "--version"]},
236
+ {"name": "docker compose", "cmd": ["docker", "compose", "version"]},
468
237
  {"name": "java", "cmd": ["java", "-version"]},
469
- {"name": "kubectl", "cmd": ["kubectl", "version"]},
470
- {"name": "helm", "cmd": ["helm", "version"]},
238
+ {"name": "helm", "cmd": ["helm", "version"], "prefix": "HELM: "},
471
239
  ]
472
240
  """ Default value of the field path 'Print versions versions' """
473
241
 
@@ -528,48 +296,6 @@ PUBLISH_PYPI_DEFAULT: dict[str, Any] = {}
528
296
  """ Default value of the field path 'publish_pypi' """
529
297
 
530
298
 
531
- PULL_REQUEST_CHECKS_COMMITS_MESSAGES_FIRST_CAPITAL_DEFAULT = True
532
- """ Default value of the field path 'pull request checks commits messages configuration check_first_capital' """
533
-
534
-
535
- PULL_REQUEST_CHECKS_COMMITS_MESSAGES_FIXUP_DEFAULT = True
536
- """ Default value of the field path 'pull request checks commits messages configuration check_fixup' """
537
-
538
-
539
- PULL_REQUEST_CHECKS_COMMITS_MESSAGES_MIN_HEAD_LENGTH_DEFAULT = 5
540
- """ Default value of the field path 'pull request checks commits messages configuration min_head_length' """
541
-
542
-
543
- PULL_REQUEST_CHECKS_COMMITS_MESSAGES_NO_MERGE_COMMITS_DEFAULT = True
544
- """ Default value of the field path 'pull request checks commits messages configuration check_no_merge_commits' """
545
-
546
-
547
- PULL_REQUEST_CHECKS_COMMITS_MESSAGES_NO_OWN_REVERT_DEFAULT = True
548
- """ Default value of the field path 'pull request checks commits messages configuration check_no_own_revert' """
549
-
550
-
551
- PULL_REQUEST_CHECKS_COMMITS_MESSAGES_ONLY_HEAD_DEFAULT = True
552
- """ Default value of the field path 'pull request checks commits spelling configuration only_head' """
553
-
554
-
555
- PULL_REQUEST_CHECKS_COMMITS_MESSAGES_SQUASH_DEFAULT = True
556
- """ Default value of the field path 'pull request checks commits messages configuration check_squash' """
557
-
558
-
559
- PULL_REQUEST_CHECKS_DEFAULT = {
560
- "commits_messages": True,
561
- "commits_spell": True,
562
- "pull_request_spell": True,
563
- "pull_request_labels": True,
564
- "add_issue_link": True,
565
- }
566
- """ Default value of the field path 'configuration pr-checks' """
567
-
568
-
569
- PULL_REQUEST_CHECKS_ONLY_HEAD_DEFAULT = True
570
- """ Default value of the field path 'pull request checks pull request spelling configuration only_head' """
571
-
572
-
573
299
  class PrintVersions(TypedDict, total=False):
574
300
  """
575
301
  Print versions.
@@ -582,10 +308,6 @@ class PrintVersions(TypedDict, total=False):
582
308
  Print versions versions.
583
309
 
584
310
  default:
585
- - cmd:
586
- - c2cciutils
587
- - --version
588
- name: c2cciutils
589
311
  - cmd:
590
312
  - python3
591
313
  - --version
@@ -596,10 +318,6 @@ class PrintVersions(TypedDict, total=False):
596
318
  - pip
597
319
  - --version
598
320
  name: pip
599
- - cmd:
600
- - twine
601
- - --version
602
- name: twine
603
321
  - cmd:
604
322
  - node
605
323
  - --version
@@ -614,27 +332,24 @@ class PrintVersions(TypedDict, total=False):
614
332
  - make
615
333
  - --version
616
334
  name: make
617
- prefix: 'make '
618
335
  - cmd:
619
336
  - docker
620
337
  - --version
621
338
  name: docker
622
339
  - cmd:
623
- - docker-compose
624
- - --version
625
- name: docker-compose
340
+ - docker
341
+ - compose
342
+ - version
343
+ name: docker compose
626
344
  - cmd:
627
345
  - java
628
346
  - -version
629
347
  name: java
630
- - cmd:
631
- - kubectl
632
- - version
633
- name: kubectl
634
348
  - cmd:
635
349
  - helm
636
350
  - version
637
351
  name: helm
352
+ prefix: 'HELM: '
638
353
  """
639
354
 
640
355
 
@@ -925,190 +640,6 @@ class PublishPypiPackage(TypedDict, total=False):
925
640
  """ The command used to do the build """
926
641
 
927
642
 
928
- class PullRequestChecks(TypedDict, total=False):
929
- """
930
- Pull request checks.
931
-
932
- The PR check configuration
933
-
934
- default:
935
- add_issue_link: true
936
- commits_messages: true
937
- commits_spell: true
938
- pull_request_labels: true
939
- pull_request_spell: true
940
- """
941
-
942
- commits_messages: "PullRequestChecksCommitsMessages"
943
- """
944
- pull request checks commits messages.
945
-
946
- Check the pull request commits messages
947
-
948
- Aggregation type: oneOf
949
- Subtype: "PullRequestChecksCommitsMessagesConfiguration"
950
- """
951
-
952
- commits_spell: "PullRequestChecksCommitsSpelling"
953
- """
954
- pull request checks commits spelling.
955
-
956
- Aggregation type: oneOf
957
- Subtype: "PullRequestChecksCommitsSpellingConfiguration"
958
- """
959
-
960
- pull_request_spell: "PullRequestChecksPullRequestSpelling"
961
- """
962
- pull request checks pull request spelling.
963
-
964
- Aggregation type: oneOf
965
- Subtype: "PullRequestChecksPullRequestSpellingConfiguration"
966
- """
967
-
968
- pull_request_labels: "PullRequestChecksRequestLabels"
969
- """
970
- pull request checks request labels.
971
-
972
- According the create changelog configuration
973
- """
974
-
975
- add_issue_link: "PullRequestChecksAddIssueLink"
976
- """ pull request checks add issue link. """
977
-
978
-
979
- PullRequestChecksAddIssueLink = bool
980
- """ pull request checks add issue link. """
981
-
982
-
983
- PullRequestChecksCommitsMessages = Union["PullRequestChecksCommitsMessagesConfiguration", bool]
984
- """
985
- pull request checks commits messages.
986
-
987
- Check the pull request commits messages
988
-
989
- Aggregation type: oneOf
990
- Subtype: "PullRequestChecksCommitsMessagesConfiguration"
991
- """
992
-
993
-
994
- class PullRequestChecksCommitsMessagesConfiguration(TypedDict, total=False):
995
- """
996
- pull request checks commits messages configuration.
997
-
998
- The commit message check configuration
999
- """
1000
-
1001
- check_fixup: bool
1002
- """
1003
- pull request checks commits messages fixup.
1004
-
1005
- Check that we don't have one fixup commit in the pull request
1006
-
1007
- default: True
1008
- """
1009
-
1010
- check_squash: bool
1011
- """
1012
- pull request checks commits messages squash.
1013
-
1014
- Check that we don't have one squash commit in the pull request
1015
-
1016
- default: True
1017
- """
1018
-
1019
- check_first_capital: bool
1020
- """
1021
- pull request checks commits messages first capital.
1022
-
1023
- Check that the all the commits message starts with a capital letter
1024
-
1025
- default: True
1026
- """
1027
-
1028
- min_head_length: int
1029
- """
1030
- pull request checks commits messages min head length.
1031
-
1032
- Check that the commits message head is at least this long, use 0 to disable
1033
-
1034
- default: 5
1035
- """
1036
-
1037
- check_no_merge_commits: bool
1038
- """
1039
- pull request checks commits messages no merge commits.
1040
-
1041
- Check that we don't have merge commits in the pull request
1042
-
1043
- default: True
1044
- """
1045
-
1046
- check_no_own_revert: bool
1047
- """
1048
- pull request checks commits messages no own revert.
1049
-
1050
- Check that we don't have reverted one of our commits in the pull request
1051
-
1052
- default: True
1053
- """
1054
-
1055
-
1056
- PullRequestChecksCommitsSpelling = Union["PullRequestChecksCommitsSpellingConfiguration", bool]
1057
- """
1058
- pull request checks commits spelling.
1059
-
1060
- Aggregation type: oneOf
1061
- Subtype: "PullRequestChecksCommitsSpellingConfiguration"
1062
- """
1063
-
1064
-
1065
- class PullRequestChecksCommitsSpellingConfiguration(TypedDict, total=False):
1066
- """
1067
- pull request checks commits spelling configuration.
1068
-
1069
- Configuration used to check the spelling of the commits
1070
- """
1071
-
1072
- only_head: bool
1073
- """
1074
- pull request checks commits messages only head.
1075
-
1076
- default: True
1077
- """
1078
-
1079
-
1080
- PullRequestChecksPullRequestSpelling = Union["PullRequestChecksPullRequestSpellingConfiguration", bool]
1081
- """
1082
- pull request checks pull request spelling.
1083
-
1084
- Aggregation type: oneOf
1085
- Subtype: "PullRequestChecksPullRequestSpellingConfiguration"
1086
- """
1087
-
1088
-
1089
- class PullRequestChecksPullRequestSpellingConfiguration(TypedDict, total=False):
1090
- """
1091
- pull request checks pull request spelling configuration.
1092
-
1093
- Configuration used to check the spelling of the title and body of the pull request
1094
- """
1095
-
1096
- only_head: bool
1097
- """
1098
- pull request checks only head.
1099
-
1100
- default: True
1101
- """
1102
-
1103
-
1104
- PullRequestChecksRequestLabels = bool
1105
- """
1106
- pull request checks request labels.
1107
-
1108
- According the create changelog configuration
1109
- """
1110
-
1111
-
1112
643
  class Version(TypedDict, total=False):
1113
644
  """
1114
645
  Version.
@@ -1265,9 +796,9 @@ default:
1265
796
  _VersionTransformItem = TypedDict(
1266
797
  "_VersionTransformItem",
1267
798
  {
1268
- # The from regular expression
799
+ # | The from regular expression
1269
800
  "from": str,
1270
- # The expand regular expression: https://docs.python.org/3/library/re.html#re.Match.expand
801
+ # | The expand regular expression: https://docs.python.org/3/library/re.html#re.Match.expand
1271
802
  "to": str,
1272
803
  },
1273
804
  total=False,