jobs: register RoR affiliation job #1545
Annotations
5 errors
Run tests:
invenio_vocabularies/jobs.py#L1
isort-check
"""Jobs module."""
import datetime
+from datetime import timezone
+from invenio_i18n import gettext as _
from invenio_jobs.jobs import JobType
+from marshmallow import Schema, fields
+from marshmallow_utils.fields import TZDateTime
from invenio_vocabularies.services.tasks import process_datastream
-from marshmallow import Schema, fields
-from marshmallow_utils.fields import TZDateTime
-from datetime import timezone
-from invenio_i18n import gettext as _
class ArgsSchema(Schema):
|
Run tests:
invenio_vocabularies/jobs.py#L1
Black format check
--- /home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/jobs.py 2024-09-27 14:32:50.530436+00:00
+++ /home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/jobs.py 2024-09-27 14:38:15.288755+00:00
@@ -23,12 +23,13 @@
since = TZDateTime(
timezone=timezone.utc,
format="iso",
metadata={
- "description":
- _("YYYY-MM-DD HH:mm format. Leave field empty if it should continue since last successful run")
+ "description": _(
+ "YYYY-MM-DD HH:mm format. Leave field empty if it should continue since last successful run"
+ )
},
)
job_arg_schema = fields.String(
metadata={"type": "hidden"},
dump_default="ArgsSchema",
|
Run tests:
invenio_vocabularies/jobs.py#L1
pydocstyle-check
/home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/jobs.py:22 in public class `ArgsSchema`:
D101: Missing docstring in public class
/home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/jobs.py:39 in public class `ProcessDataStreamJob`:
D101: Missing docstring in public class
/home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/jobs.py:54 in public method `default_args`:
D102: Missing docstring in public method
|
Run tests:
invenio_vocabularies/contrib/common/ror/datastreams.py#L1
pydocstyle-check
/home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/contrib/common/ror/datastreams.py:24 in public class `RORHTTPReader`:
D205: 1 blank line required between summary line and description (found 0)
/home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/contrib/common/ror/datastreams.py:24 in public class `RORHTTPReader`:
D400: First line should end with a period (not 'y')
/home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/contrib/common/ror/datastreams.py:63 in public method `read`:
D205: 1 blank line required between summary line and description (found 0)
/home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/contrib/common/ror/datastreams.py:63 in public method `read`:
D400: First line should end with a period (not 'm')
|
Run tests
Process completed with exit code 1.
|
Loading