Skip to content

Commit 9d92633

Browse files
committed
linter fixes
Signed-off-by: Zack Koppert <[email protected]>
1 parent 26bca8b commit 9d92633

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

crawler.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from dotenv import load_dotenv
1111

1212
if __name__ == "__main__":
13-
1413
# Load env variables from file
1514
dotenv_path = join(dirname(__file__), ".env")
1615
load_dotenv(dotenv_path)
@@ -25,19 +24,19 @@
2524
# Set the topic
2625
topic = os.getenv("TOPIC")
2726
# If multiple topics, split topics by comma
28-
topics = [t.strip() for t in topic.split(',')]
27+
topics = [t.strip() for t in topic.split(",")]
2928
organization = os.getenv("ORGANIZATION")
3029

3130
# Create empty list for repos
3231
repo_list = []
3332
# Set for repos that have already been added to the list
3433
repo_set = set()
35-
34+
3635
# Iterate over topics, search for matching repositories, and process unique ones
3736
for topic in topics:
3837
search_string = "org:{} topic:{}".format(organization, topic)
3938
all_repos = gh.search_repositories(search_string)
40-
39+
4140
# For each repo in the search results, check if it's unique and add it to repo_set
4241
for repo in all_repos:
4342
if repo is not None and repo.repository.full_name not in repo_set:
@@ -59,9 +58,9 @@
5958

6059
# fetch repository participation
6160
participation = repo.repository.weekly_commit_count()
62-
innersource_repo["_InnerSourceMetadata"]["participation"] = participation[
63-
"all"
64-
]
61+
innersource_repo["_InnerSourceMetadata"][
62+
"participation"
63+
] = participation["all"]
6564

6665
# fetch contributing guidelines
6766
try:
@@ -79,7 +78,9 @@
7978
innersource_repo["_InnerSourceMetadata"]["topics"] = repo_topics.names
8079

8180
# calculate score
82-
innersource_repo["score"] = repo_activity.score.calculate(innersource_repo)
81+
innersource_repo["score"] = repo_activity.score.calculate(
82+
innersource_repo
83+
)
8384

8485
repo_list.append(innersource_repo)
8586

0 commit comments

Comments
 (0)