Skip to content

Commit

Permalink
style: Ignore complexity of some methods
Browse files Browse the repository at this point in the history
  • Loading branch information
bellisk committed Dec 2, 2024
1 parent 65f2a50 commit 41f66a3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ckanext/switzerland/harvester/base_sbb_harvester.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def fetch_stage(self, harvest_object):
)
return False

def _fetch_stage(self, harvest_object): # noqa
def _fetch_stage(self, harvest_object): # noqa: C901
"""
Fetching of resources. Runs once for each gathered resource.
Expand Down Expand Up @@ -602,7 +602,7 @@ def import_stage(self, harvest_object):
)
return False

def _import_stage(self, harvest_object): # noqa
def _import_stage(self, harvest_object): # noqa: C901
"""
Importing the fetched files into CKAN storage.
Runs once for each fetched resource.
Expand Down Expand Up @@ -996,7 +996,8 @@ def _get_ordered_resources(self, package):

return ordered_resources, unmatched_resources

def finalize(self, harvest_object, harvest_object_data):
def finalize(self, harvest_object, harvest_object_data): # noqa: C901
# TODO: Simplify this method.
user_name = self._get_user_name()
context = {"model": model, "session": Session, "user": user_name}
stage = "Import"
Expand Down

0 comments on commit 41f66a3

Please sign in to comment.