Add tasks endpoint. #13
Annotations
4 errors
|
Run tests:
invenio_jobs/ext.py#L1
isort-check
from invenio_i18n import gettext as _
from . import config
-from .resources import JobResource, JobResourceConfig, TasksResource, TasksResourceConfig
+from .resources import (
+ JobResource,
+ JobResourceConfig,
+ TasksResource,
+ TasksResourceConfig,
+)
from .services import JobService, JobServiceConfig, TasksService, TasksServiceConfig
|
Run tests:
invenio_jobs/ext.py#L1
Black format check
--- /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/ext.py 2024-05-13 13:48:08.789591+00:00
+++ /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/ext.py 2024-05-13 13:50:14.268104+00:00
@@ -8,11 +8,16 @@
"""Jobs extension."""
from invenio_i18n import gettext as _
from . import config
-from .resources import JobResource, JobResourceConfig, TasksResource, TasksResourceConfig
+from .resources import (
+ JobResource,
+ JobResourceConfig,
+ TasksResource,
+ TasksResourceConfig,
+)
from .services import JobService, JobServiceConfig, TasksService, TasksServiceConfig
class InvenioJobs:
"""Invenio-Jobs extension."""
@@ -41,11 +46,13 @@
self.tasks_service = TasksService(TasksServiceConfig.build(app))
def init_resource(self, app):
"""Initialize resources."""
self.jobs_resource = JobResource(JobResourceConfig.build(app), self.service)
- self.tasks_resource = TasksResource(TasksResourceConfig.build(app), self.tasks_service)
+ self.tasks_resource = TasksResource(
+ TasksResourceConfig.build(app), self.tasks_service
+ )
def finalize_app(app):
"""Finalize app."""
rr_ext = app.extensions["invenio-records-resources"]
|
Run tests
The operation was canceled.
|
Loading