Skip to content

Commit

Permalink
fix lint issue with PR #123 (#124)
Browse files Browse the repository at this point in the history
Co-authored-by: David Chaiken <[email protected]>
  • Loading branch information
davidchaiken and David Chaiken authored Jul 15, 2024
1 parent 75bd481 commit f8aa99d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/src/access_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def oauth(self, scopes=None, client_credentials=False):
Execute the OAuth 2.0 process for obtaining an access token.
For more information, see IETF RFC 6749: https://tools.ietf.org/html/rfc6749
and https://developers.pinterest.com/docs/getting-started/authentication-and-scopes/
"""
""" # noqa: E501 because the long URL is okay
if not scopes:
scopes = [Scope.READ_USERS, Scope.READ_PINS, Scope.READ_BOARDS]
print(
Expand Down
10 changes: 7 additions & 3 deletions python/src/oauth_scope.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
from enum import Enum


# Enumerate the valid OAuth scopes.
# For details, see: https://developers.pinterest.com/docs/getting-started/authentication-and-scopes/#pinterest-scopes
class Scope(Enum):
"""
Enumerate the valid OAuth scopes.
For details, see: https://developers.pinterest.com/docs/getting-started/authentication-and-scopes/#pinterest-scopes
""" # noqa: E501 because the long URL is okay

READ_ADS = "ads:read"
WRITE_ADS = "ads:write"
READ_BOARDS = "boards:read"
Expand Down Expand Up @@ -61,5 +64,6 @@ def print_scopes():
user_accounts:read Read access to user accounts
For more information, see:
https://developers.pinterest.com/docs/getting-started/authentication-and-scopes/#pinterest-scopes"""
https://developers.pinterest.com/docs/getting-started/authentication-and-scopes/#pinterest-scopes\
""" # noqa: E501 because the long URL is okay
)

0 comments on commit f8aa99d

Please sign in to comment.