Skip to content

Commit e5e3de9

Browse files
committed
resolved lint issues
1 parent 29ac543 commit e5e3de9

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,3 @@ types-pytz
1717
types-requests
1818
gitlint>=0.13.0
1919
-r ./zulip/integrations/bridge_with_matrix/requirements.txt
20-
-r ./zulip/integrations/google/requirements.txt

zulip/integrations/google/get-google-credentials

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ from google.oauth2.credentials import Credentials
77
from google_auth_oauthlib.flow import InstalledAppFlow
88

99
flags = argparse.ArgumentParser(description="Google Calendar Bot")
10-
flags.add_argument("--noauth_local_webserver", action="store_true", help="Run OAuth flow in console instead of opening a web browser.")
10+
flags.add_argument(
11+
"--noauth_local_webserver",
12+
action="store_true",
13+
help="Run OAuth flow in console instead of opening a web browser.",
14+
)
1115
args = flags.parse_args()
1216

1317
# If modifying these scopes, delete your previously saved credentials
@@ -22,6 +26,7 @@ APPLICATION_NAME = "Zulip Calendar Bot"
2226
HOME_DIR = os.path.expanduser("~")
2327
CREDENTIALS_PATH = os.path.join(HOME_DIR, "google-credentials.json")
2428

29+
2530
def get_credentials() -> Credentials:
2631
"""Gets valid user credentials from storage.
2732

zulip/integrations/google/google-calendar

+2
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ if not options.zulip_email:
8181

8282
zulip_client = zulip.init_from_options(options)
8383

84+
8485
def get_credentials() -> Credentials:
8586
"""Gets valid user credentials from storage.
8687
@@ -111,6 +112,7 @@ def get_credentials() -> Credentials:
111112

112113
return creds
113114

115+
114116
def populate_events() -> Optional[None]:
115117
credentials = get_credentials()
116118
service = build("calendar", "v3", credentials=credentials)

0 commit comments

Comments
 (0)