Skip to content

Commit c952c97

Browse files
ci(prettier): add prettier formatting (reanahub#491)
1 parent a2ce412 commit c952c97

7 files changed

Lines changed: 140 additions & 366 deletions

File tree

.release-please-config.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@
55
".": {
66
"changelog-sections": [
77
{ "type": "build", "section": "Build", "hidden": false },
8-
{ "type": "feat", "section": "Features", "hidden": false },
8+
{ "type": "feat", "section": "Features", "hidden": false },
99
{ "type": "fix", "section": "Bug fixes", "hidden": false },
10-
{ "type": "perf", "section": "Performance improvements", "hidden": false },
10+
{
11+
"type": "perf",
12+
"section": "Performance improvements",
13+
"hidden": false
14+
},
1115
{ "type": "refactor", "section": "Code refactoring", "hidden": false },
1216
{ "type": "style", "section": "Code style", "hidden": false },
1317
{ "type": "test", "section": "Test suite", "hidden": false },

CONTRIBUTING.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# Contributing
22

3-
Bug reports, issues, feature requests, and other contributions are welcome. If you find
4-
a demonstrable problem that is caused by the REANA code, please:
3+
Bug reports, issues, feature requests, and other contributions are welcome. If
4+
you find a demonstrable problem that is caused by the REANA code, please:
55

6-
1. Search for [already reported problems](https://github.com/reanahub/reana-commons/issues).
7-
2. Check if the issue has been fixed or is still reproducible on the
8-
latest `master` branch.
6+
1. Search for
7+
[already reported problems](https://github.com/reanahub/reana-commons/issues).
8+
2. Check if the issue has been fixed or is still reproducible on the latest
9+
`master` branch.
910
3. Create an issue, ideally with **a test case**.
1011

1112
If you create a pull request fixing a bug or implementing a feature, you can run

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
## About
1212

1313
REANA-Commons is a component of the [REANA](http://www.reana.io/) reusable and
14-
reproducible research data analysis platform. It provides common utilities and schemas
15-
shared by the REANA cluster components.
14+
reproducible research data analysis platform. It provides common utilities and
15+
schemas shared by the REANA cluster components.
1616

1717
## Features
1818

reana_commons/openapi_specifications/reana_job_controller.json

Lines changed: 11 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,7 @@
162162
"type": "string"
163163
}
164164
],
165-
"produces": [
166-
"application/json"
167-
],
165+
"produces": ["application/json"],
168166
"responses": {
169167
"200": {
170168
"description": "Request succeeded. Returns boolean depicting if job is in cache.",
@@ -189,9 +187,7 @@
189187
"get": {
190188
"description": "This resource is not expecting parameters and it will return a list representing all active jobs in JSON format.",
191189
"operationId": "get_jobs",
192-
"produces": [
193-
"application/json"
194-
],
190+
"produces": ["application/json"],
195191
"responses": {
196192
"200": {
197193
"description": "Request succeeded. The response contains the list of all active jobs.",
@@ -200,10 +196,7 @@
200196
"jobs": {
201197
"1612a779-f3fa-4344-8819-3d12fa9b9d90": {
202198
"cmd": "date",
203-
"cvmfs_mounts": [
204-
"atlas.cern.ch",
205-
"atlas-condb.cern.ch"
206-
],
199+
"cvmfs_mounts": ["atlas.cern.ch", "atlas-condb.cern.ch"],
207200
"docker_img": "docker.io/library/busybox",
208201
"job_id": "1612a779-f3fa-4344-8819-3d12fa9b9d90",
209202
"max_restart_count": 3,
@@ -212,10 +205,7 @@
212205
},
213206
"2e4bbc1d-db5e-4ee0-9701-6e2b1ba55c20": {
214207
"cmd": "date",
215-
"cvmfs_mounts": [
216-
"atlas.cern.ch",
217-
"atlas-condb.cern.ch"
218-
],
208+
"cvmfs_mounts": ["atlas.cern.ch", "atlas-condb.cern.ch"],
219209
"docker_img": "docker.io/library/busybox",
220210
"job_id": "2e4bbc1d-db5e-4ee0-9701-6e2b1ba55c20",
221211
"max_restart_count": 3,
@@ -236,9 +226,7 @@
236226
"summary": "Returns list of all active jobs."
237227
},
238228
"post": {
239-
"consumes": [
240-
"application/json"
241-
],
229+
"consumes": ["application/json"],
242230
"description": "This resource is expecting JSON data with all the necessary information of a new job.",
243231
"operationId": "create_job",
244232
"parameters": [
@@ -252,9 +240,7 @@
252240
}
253241
}
254242
],
255-
"produces": [
256-
"application/json"
257-
],
243+
"produces": ["application/json"],
258244
"responses": {
259245
"201": {
260246
"description": "Request succeeded. The job has been launched.",
@@ -295,20 +281,15 @@
295281
"type": "string"
296282
}
297283
],
298-
"produces": [
299-
"application/json"
300-
],
284+
"produces": ["application/json"],
301285
"responses": {
302286
"200": {
303287
"description": "Request succeeded. The response contains details about the given job ID.",
304288
"examples": {
305289
"application/json": {
306290
"job": {
307291
"cmd": "date",
308-
"cvmfs_mounts": [
309-
"atlas.cern.ch",
310-
"atlas-condb.cern.ch"
311-
],
292+
"cvmfs_mounts": ["atlas.cern.ch", "atlas-condb.cern.ch"],
312293
"docker_img": "docker.io/library/busybox",
313294
"job_id": "cdcf48b1-c2f3-4693-8230-b066e088c6ac",
314295
"max_restart_count": 3,
@@ -335,9 +316,7 @@
335316
},
336317
"/jobs/{job_id}/": {
337318
"delete": {
338-
"consumes": [
339-
"application/json"
340-
],
319+
"consumes": ["application/json"],
341320
"description": "This resource expects the `job_id` of the job to be deleted.",
342321
"operationId": "delete_job",
343322
"parameters": [
@@ -356,9 +335,7 @@
356335
"type": "string"
357336
}
358337
],
359-
"produces": [
360-
"application/json"
361-
],
338+
"produces": ["application/json"],
362339
"responses": {
363340
"204": {
364341
"description": "Request accepted. A request to delete the job has been sent to the\n compute backend."
@@ -396,9 +373,7 @@
396373
"type": "string"
397374
}
398375
],
399-
"produces": [
400-
"application/json"
401-
],
376+
"produces": ["application/json"],
402377
"responses": {
403378
"200": {
404379
"description": "Request succeeded. The response contains the logs for the given job.",

0 commit comments

Comments
 (0)