Skip to content

Commit

Permalink
Fix: Remove from this pr
Browse files Browse the repository at this point in the history
  • Loading branch information
lwasser committed Mar 9, 2024
1 parent e24f847 commit 0ce6a3e
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/pyosmeta/contributors.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import json
import os

import requests
from dataclasses import dataclass
from dotenv import load_dotenv
from typing import List, Optional, Tuple


Expand Down Expand Up @@ -50,17 +52,17 @@ def __init__(self, json_files: List) -> None:
],
}

# def get_token(self) -> str:
# """Fetches the GitHub API key from the users environment. If running
# local from an .env file.

# Returns
# -------
# str
# The provided API key in the .env file.
# """
# load_dotenv()
# return os.environ["GITHUB_TOKEN"]
def get_token(self) -> str:
"""Fetches the GitHub API key from the users environment. If running
local from an .env file.
Returns
-------
str
The provided API key in the .env file.
"""
load_dotenv()
return os.environ["GITHUB_TOKEN"]

def check_contrib_type(self, json_file: str):
"""
Expand Down

0 comments on commit 0ce6a3e

Please sign in to comment.