From 4b90ef30580af1e7f8a4f3500ddab15dcc72b051 Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Mon, 6 May 2024 16:33:22 +0330 Subject: [PATCH] fix: linter issues! --- dags/github.py | 4 +--- dags/github/github_api_helpers/__init__.py | 2 +- dags/github/github_api_helpers/repos.py | 1 + dags/hivemind_etl_helpers/src/utils/get_communities_data.py | 1 + 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dags/github.py b/dags/github.py index 9f42e5d9..6c21a06a 100644 --- a/dags/github.py +++ b/dags/github.py @@ -28,7 +28,6 @@ fetch_commit_files, fetch_commit_pull_requests, fetch_org_details, - fetch_repo_using_id, get_all_comment_reactions, get_all_commits, get_all_issues, @@ -121,7 +120,7 @@ def extract_github_organization(module_info): @task def transform_github_organization(organization): - logging.info(f"transform_github_organization") + logging.info("transform_github_organization") return organization @task @@ -142,7 +141,6 @@ def load_github_organization(organization): # region organization members ETL @task def extract_github_organization_members(organization): - for iter, org in enumerate(organization["organizations_info"]): logging.info( "Extracting organization members iteration " diff --git a/dags/github/github_api_helpers/__init__.py b/dags/github/github_api_helpers/__init__.py index 2bf33a2e..38c3c8c6 100644 --- a/dags/github/github_api_helpers/__init__.py +++ b/dags/github/github_api_helpers/__init__.py @@ -24,4 +24,4 @@ get_all_review_comments_of_pull_request, get_all_reviews_of_pull_request, ) -from .repos import get_all_org_repos, get_all_repo_contributors, fetch_repo_using_id +from .repos import fetch_repo_using_id, get_all_org_repos, get_all_repo_contributors diff --git a/dags/github/github_api_helpers/repos.py b/dags/github/github_api_helpers/repos.py index 444edc73..dcbac353 100644 --- a/dags/github/github_api_helpers/repos.py +++ b/dags/github/github_api_helpers/repos.py @@ -50,6 +50,7 @@ def get_all_org_repos(org_name: str): ) return all_repos + def fetch_repo_using_id(repo_id: int): """ fetch github repository using their id diff --git a/dags/hivemind_etl_helpers/src/utils/get_communities_data.py b/dags/hivemind_etl_helpers/src/utils/get_communities_data.py index 45b473c4..f12a651c 100644 --- a/dags/hivemind_etl_helpers/src/utils/get_communities_data.py +++ b/dags/hivemind_etl_helpers/src/utils/get_communities_data.py @@ -2,6 +2,7 @@ This file to be removed in future and we would move the features to directory /dags/hivemind_etl_helpers/src/utils/modules/ """ + from datetime import datetime from hivemind_etl_helpers.src.utils.mongo import MongoSingleton