Skip to content

Commit

Permalink
chore: run prettier
Browse files Browse the repository at this point in the history
Signed-off-by: Zack Koppert <[email protected]>
  • Loading branch information
zkoppert committed Sep 30, 2024
1 parent 0a73c50 commit d51517f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: '3.12'
python-version: "3.12"
- name: Install dependencies
run: |
pip install -r requirements.txt -r requirements-test.txt
Expand Down
24 changes: 14 additions & 10 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ class EnvVars:
Environment variables
Attributes:
enable_mentor_count (bool): If set to TRUE, compute number of mentors
gh_app_id (int | None): The GitHub App ID to use for authentication
gh_app_installation_id (int | None): The GitHub App Installation ID to use for authentication
gh_app_private_key_bytes (bytes): The GitHub App Private Key as bytes to use for authentication
gh_token (str | None): GitHub personal access token (PAT) for API authentication
ghe (str): The GitHub Enterprise URL to use for authentication
heavily_involved_cutoff (str): If set, defines the cutoff after which heavily involved commentors in
hide_author (bool): If true, the author's information is hidden in the output
hide_items_closed_count (bool): If true, the number of items closed metric is hidden in the output
hide_label_metrics (bool): If true, the label metrics are hidden in the output
Expand All @@ -35,23 +37,25 @@ class EnvVars:
hide_time_to_first_response (bool): If true, the time to first response metric is hidden in the output
ignore_users (List[str]): List of usernames to ignore when calculating metrics
labels_to_measure (List[str]): List of labels to measure how much time the lable is applied
enable_mentor_count (bool): If set to TRUE, compute number of mentors
min_mentor_comments (str): If set, defines the minimum number of comments for mentors
max_comments_eval (str): If set, defines the maximum number of comments to look at for mentor evaluation
heavily_involved_cutoff (str): If set, defines the cutoff after which heavily involved commentors in
search_query (str): Search query used to filter issues/prs/discussions on GitHub
min_mentor_comments (str): If set, defines the minimum number of comments for mentors
non_mentioning_links (bool): If set to TRUE, links do not cause a notification in the desitnation repository
report_title (str): The title of the report
output_file (str): The name of the file to write the report to
report_title (str): The title of the report
search_query (str): Search query used to filter issues/prs/discussions on GitHub
sort_by_author (bool): If true, the report will be sorted by author
sort_by_time_to_close (bool): If true, the report will be sorted by time to close
"""

def __init__(
self,
enable_mentor_count: bool,
gh_app_id: int | None,
gh_app_installation_id: int | None,
gh_app_private_key_bytes: bytes,
gh_token: str | None,
ghe: str | None,
heavily_involved_cutoff: str,
hide_author: bool,
hide_items_closed_count: bool,
hide_label_metrics: bool,
Expand All @@ -60,14 +64,14 @@ def __init__(
hide_time_to_first_response: bool,
ignore_user: List[str],
labels_to_measure: List[str],
enable_mentor_count: bool,
min_mentor_comments: str,
max_comments_eval: str,
heavily_involved_cutoff: str,
search_query: str,
min_mentor_comments: str,
non_mentioning_links: bool,
report_title: str,
output_file: str,
report_title: str,
search_query: str,
sort_by_author: bool,
sort_by_time_to_close: bool,
):
self.gh_app_id = gh_app_id
self.gh_app_installation_id = gh_app_installation_id
Expand Down

0 comments on commit d51517f

Please sign in to comment.