Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
antonplagemann committed Sep 30, 2022
1 parent a969430 commit a10b106
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion helpers/GoogleHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ def __build_service(self) -> Resource:
self.credentials_file,
scopes=["https://www.googleapis.com/auth/contacts"],
)
creds = flow.run_local_server(port=56411, bind_addr="0.0.0.0", prompt="consent")
creds = flow.run_local_server(
port=56411, bind_addr="0.0.0.0", prompt="consent" # nosec B104
)
else:
self.log.error("The 'token.pickle' file was not found or invalid!")
self.log.info(
Expand Down
5 changes: 3 additions & 2 deletions helpers/SyncHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -863,8 +863,9 @@ def create_google_contact(self, monica_contact: dict) -> dict:
def __get_monica_middle_name(
self, first_name: str, last_name: str, nickname: str, full_name: str
) -> str:
"""Monica contacts have for some reason a hidden field middlename that can be set (creation/update)
but sadly can not retrieved later. This function computes it by using the complete_name field."""
"""Monica contacts have for some reason a hidden field middlename
that can be set (creation/update) but sadly can not retrieved later.
This function computes it by using the complete_name field."""
try:
# If there is a nickname it will be parenthesized with a space
nickname_length = len(nickname) + 3 if nickname else 0
Expand Down

0 comments on commit a10b106

Please sign in to comment.