Skip to content

Commit

Permalink
chore: fix docstrings
Browse files Browse the repository at this point in the history
* remove redundant files
  • Loading branch information
kpsherva committed Jul 17, 2024
1 parent b368bf8 commit ba23356
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 264 deletions.
9 changes: 9 additions & 0 deletions cds_migrator_kit/rdm/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2024 CERN.
#
# cds-migrator-kit is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.

"""Migration tool kit from old Invenio to new InvenioRDM."""
6 changes: 1 addition & 5 deletions cds_migrator_kit/rdm/migration/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@

"""CDS-RDM migration load module."""

from pathlib import Path

# from invenio_rdm_migrator.streams.records import RDMRecordCopyLoad

from invenio_rdm_migrator.load.base import Load
from invenio_rdm_records.proxies import current_rdm_records_service
from invenio_access.permissions import system_identity
Expand All @@ -28,7 +24,7 @@ def __init__(self, db_uri, data_dir, tmp_dir, existing_data=False, entries=None)
self.entries = entries

def _prepare(self, entry):
"""Prepare the record"""
"""Prepare the record."""
pass

def _load(self, entry):
Expand Down
4 changes: 1 addition & 3 deletions cds_migrator_kit/rdm/migration/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
import yaml

from invenio_rdm_migrator.logging import FailedTxLogger, Logger
# from invenio_rdm_migrator.state import STATE, StateDB
# from .records.state import ParentModelValidator
from invenio_rdm_migrator.streams import Stream

from cds_migrator_kit.records.log import RDMJsonLogger
Expand All @@ -23,7 +21,7 @@
# Skipping the default invenio-rdm-migrator StateDB
# most likely it won't be needed
class Runner:
"""ETL streams runner"""
"""ETL streams runner."""

def _read_config(self, filepath):
"""Read config from file."""
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2024 CERN.
#
# cds-migrator-kit is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.

"""Migration rules for migration."""
14 changes: 0 additions & 14 deletions requirements-devel.txt

This file was deleted.

242 changes: 0 additions & 242 deletions requirements.txt

This file was deleted.

0 comments on commit ba23356

Please sign in to comment.