Skip to content

Commit

Permalink
feat: more lint formate
Browse files Browse the repository at this point in the history
  • Loading branch information
scientiststwin committed Dec 15, 2023
1 parent c15d7ca commit 24f78df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions dags/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ 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": ""
# }
# 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": ""
Expand Down
4 changes: 2 additions & 2 deletions dags/neo4j_storage/pull_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 24f78df

Please sign in to comment.