Skip to content

Commit

Permalink
fix: fix quibbles from ruff 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
martinobersteiner committed Nov 25, 2024
1 parent 13eed3f commit 134f30b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion invenio_records_lom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
__version__ = "0.18.0"

__all__ = (
"InvenioRecordsLOM",
"__version__",
"current_records_lom",
"InvenioRecordsLOM",
)
2 changes: 1 addition & 1 deletion invenio_records_lom/fixtures/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
__all__ = (
"create_fake_data",
"publish_fake_record",
"publish_fake_records",
"publish_fake_record_over_celery",
"publish_fake_records",
)
4 changes: 2 additions & 2 deletions invenio_records_lom/records/systemfields/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"LOMPIDFieldContext",
"LOMRecordIdProvider",
"LOMResolver",
"ParentRecordAccessField",
"LomRecordStatisticsField",
"PIDLOMRelation",
"ParentRecordAccessField",
"RecordAccessField",
"LomRecordStatisticsField",
)
2 changes: 1 addition & 1 deletion invenio_records_lom/services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

__all__ = (
"LOMDraftFilesServiceConfig",
"LOMRecordPermissionPolicy",
"LOMRecordFilesServiceConfig",
"LOMRecordPermissionPolicy",
"LOMRecordService",
"LOMRecordServiceConfig",
)
10 changes: 5 additions & 5 deletions invenio_records_lom/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@

__all__ = (
"DotAccessWrapper",
"get_learningresourcetypedict",
"get_oefosdict",
"LOMMetadata",
"LOMCourseMetadata",
"LOMDuplicateRecordError",
"LOMMetadata",
"LOMRecordData",
"make_lom_vcard",
"build_record_unique_id",
"check_about_duplicate",
"create_record",
"get_learningresourcetypedict",
"get_oefosdict",
"make_lom_vcard",
"update_record",
"LOMDuplicateRecordError",
)
3 changes: 1 addition & 2 deletions invenio_records_lom/utils/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@

"""Utilities for creation of LOM-compliant metadata."""

from collections.abc import MutableMapping
from collections.abc import Iterator, MutableMapping
from csv import reader
from importlib import resources
from json import load
from pathlib import Path
from re import compile as re_compile
from re import sub
from time import sleep
from typing import Iterator

from flask_principal import Identity
from invenio_records_resources.services.base import Service
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ exclude = ["docs"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN101", "ANN102",
"D203", "D211", "D212", "D213",
"E501",
"FA100", "FA102",
Expand Down

0 comments on commit 134f30b

Please sign in to comment.