Skip to content

Commit 67bbd93

Browse files
committed
update docstrings
1 parent 73f2dd9 commit 67bbd93

5 files changed

Lines changed: 8 additions & 2 deletions

File tree

colrev/loader/md.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(
3333
logger: logging.Logger = logging.getLogger(__name__),
3434
format_names: bool = False,
3535
):
36-
36+
"""Initialize the markdown loader."""
3737
super().__init__(
3838
filename=filename,
3939
id_labeler=id_labeler,

colrev/ops/clone.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class Clone:
1818
# pylint: disable=too-few-public-methods
1919

2020
def __init__(self, *, git_url: str) -> None:
21+
"""Initialize the clone operation."""
2122
self.git_url = git_url
2223
"""The git remote URL"""
2324

colrev/packages/plos/src/plos_search_source.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def __init__(
4848
logger: typing.Optional[logging.Logger] = None,
4949
verbose_mode: bool = False,
5050
) -> None:
51+
"""Initialize the PLOS search source."""
5152
self.logger = logger or logging.getLogger(__name__)
5253
self.verbose_mode = verbose_mode
5354

@@ -83,7 +84,8 @@ def add_endpoint(
8384
path: Path,
8485
logger: typing.Optional[logging.Logger] = None,
8586
) -> colrev.search_file.ExtendedSearchFile:
86-
"""Add the SearchSource as an endpoint based on a query (passed to colrev search -a)
87+
"""Add the SearchSource as an endpoint based on a query.
88+
8789
params:
8890
- search_file="..." to add a DB search.
8991
"""

colrev/record/qm/checkers/incomplete_field.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class IncompleteFieldChecker:
1919
def __init__(
2020
self, quality_model: colrev.record.qm.quality_model.QualityModel
2121
) -> None:
22+
"""Initialize the checker."""
2223
self.quality_model = quality_model
2324

2425
def run(self, *, record: colrev.record.record.Record) -> None:
@@ -65,6 +66,7 @@ def _incomplete_field(
6566
def _institutional_author(
6667
self, *, key: str, record: colrev.record.record.Record
6768
) -> bool:
69+
"""Determine whether the author field contains an institutional author."""
6870
if key != Fields.AUTHOR or Fields.AUTHOR not in record.data:
6971
return False
7072
if record.data[Fields.AUTHOR].startswith("{") and record.data[

colrev/ui_cli/detect_and_add_source.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class CLISourceAdder:
2222
"""CLI utility to add SearchSources."""
2323

2424
def __init__(self, *, search_operation: colrev.ops.search.Search) -> None:
25+
"""Initialize the source adder."""
2526
self.search_operation = search_operation
2627
self.review_manager = search_operation.review_manager
2728
self.package_manager = PackageManager()

0 commit comments

Comments
 (0)