Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 29, 2024
1 parent aa96352 commit 46b2b5c
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 11 deletions.
1 change: 1 addition & 0 deletions src/calendar/create_events_bulk.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Create Team Role Events in a Calendar in bulk
"""

import argparse
import json
import os
Expand Down
1 change: 1 addition & 0 deletions src/calendar/create_events_rolling_update.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Create the next event in a series based on the data for the last event in a calendar
"""

import argparse
import os

Expand Down
1 change: 1 addition & 0 deletions src/calendar/delete_events_bulk.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Delete Team Role Events in a Calendar in bulk
"""

import argparse
import os
import sys
Expand Down
1 change: 1 addition & 0 deletions src/calendar/event_handling.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Handle the generation, creation and deletion of events in a Google Calendar
"""

import json
import sys
from datetime import datetime
Expand Down
1 change: 1 addition & 0 deletions src/calendar/gcal_api_auth.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Authenticate with Google's Calendar API using a Service Account
"""

import json
import sys
from pathlib import Path
Expand Down
9 changes: 6 additions & 3 deletions src/geekbot/create_geekbot_standup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Functions to create Geekbot Standups in Slack to aid the transition of our Team Roles
through 2i2c team members
"""

import argparse
import json
import os
Expand Down Expand Up @@ -102,9 +103,11 @@ def _generate_standup_metadata(self):

metadata = {
"wait_time": 10,
"users": [self.roles["id"]]
if self.roles["id"] == self.standup_manager["id"]
else [self.roles["id"], self.standup_manager["id"]],
"users": (
[self.roles["id"]]
if self.roles["id"] == self.standup_manager["id"]
else [self.roles["id"], self.standup_manager["id"]]
),
"sync_channel_members": False,
"personalized": False,
}
Expand Down
1 change: 1 addition & 0 deletions src/geekbot/get_slack_usergroup_members.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Functions to get Slack members who are in a given usergroup
"""

import json
from collections import OrderedDict
from pathlib import Path
Expand Down
9 changes: 6 additions & 3 deletions src/geekbot/set_current_roles.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Function to populate team-roles.json with the current team members serving in our Team Roles
"""

import json
import os
from pathlib import Path
Expand Down Expand Up @@ -65,9 +66,11 @@ def main():
},
"meeting_facilitator": {
"name": current_meeting_facilitator,
"id": None
if current_meeting_facilitator is None
else members["meeting-facilitators"][current_meeting_facilitator],
"id": (
None
if current_meeting_facilitator is None
else members["meeting-facilitators"][current_meeting_facilitator]
),
},
"support_triager": {
"incoming": {
Expand Down
11 changes: 6 additions & 5 deletions src/geekbot/update_team_roles.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Functions that iterate through a list of team members in order to transition our roles
"""

import argparse
import json
import os
Expand Down Expand Up @@ -44,11 +45,11 @@ def _check_managers_id_is_set(self):
if (self.team_roles["standup_manager"].get("id") is None) or (
self.team_roles["standup_manager"]["id"] == ""
):
self.team_roles["standup_manager"][
"id"
] = self.event_handler.usergroup_dict[
self.team_roles["standup_manager"]["name"]
]
self.team_roles["standup_manager"]["id"] = (
self.event_handler.usergroup_dict[
self.team_roles["standup_manager"]["name"]
]
)

def _update_meeting_facilitator_role(self, next_member_name):
"""Update the Meeting Facilitator role metadata"""
Expand Down

0 comments on commit 46b2b5c

Please sign in to comment.