From 24f78df24344fd21c071733218c0e01cf34afdef Mon Sep 17 00:00:00 2001 From: Mohammad Twin Date: Fri, 15 Dec 2023 13:08:07 +0400 Subject: [PATCH] feat: more lint formate --- Readme.md | 1 + dags/github.py | 4 ++-- dags/neo4j_storage/pull_requests.py | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index c5ae4ffe..cda9d0c8 100644 --- a/Readme.md +++ b/Readme.md @@ -8,6 +8,7 @@ You can quickly launch the application using `Docker Compose`: docker-compose --profile flower up ``` + ## Lint the code The code can be linted by using the below command diff --git a/dags/github.py b/dags/github.py index e78a427f..fc848726 100644 --- a/dags/github.py +++ b/dags/github.py @@ -70,7 +70,7 @@ def get_all_organization(): # toghether_crew_org = { # "id": 1, # "name": "TogetherCrew", - # "description": """TogetherCrew is a community of developers, designers, and creators + # "description": """TogetherCrew is a community of developers, designers, and creators # who are passionate about building and learning together.""", # "url": "", # "key": "" @@ -78,7 +78,7 @@ def get_all_organization(): # rndao_org = { # "id": 2, # "name": "RnDAO", - # "description": """RnDAO is a community of developers, designers, and creators + # "description": """RnDAO is a community of developers, designers, and creators # who are passionate about building and learning together.""", # "url": "", # "key": "" diff --git a/dags/neo4j_storage/pull_requests.py b/dags/neo4j_storage/pull_requests.py index 16f13f8c..86492b4a 100644 --- a/dags/neo4j_storage/pull_requests.py +++ b/dags/neo4j_storage/pull_requests.py @@ -88,7 +88,7 @@ def save_pull_request_to_neo4j(pr: dict, repository_id: str): driver.close() -def save_review_to_neo4j(pr_id: dict, review: dict): +def save_review_to_neo4j(pr_id: int, review: dict): neo4jConnection = Neo4jConnection() driver = neo4jConnection.connect_neo4j() @@ -129,7 +129,7 @@ def save_pr_files_changes_to_neo4j(pr_id: int, repository_id: str, file_changes: session.execute_write( lambda tx: tx.run( f""" - MATCH (repo:{Node.Repository.value} {{id: $repository_id}}), + MATCH (repo:{Node.Repository.value} {{id: $repository_id}}), (pr:{Node.PullRequest.value} {{id: $pr_id}}) WITH repo, pr UNWIND $file_changes AS file_change