Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7977ec9

Browse filesBrowse files
author
Jon Wayne Parrott
committed
Fix more lint issues
Change-Id: I49d4f063d210629346d8d8390c9eaec261c4e519
1 parent 70a41b6 commit 7977ec9
Copy full SHA for 7977ec9

File tree

Expand file treeCollapse file tree

4 files changed

+8
-7
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+8
-7
lines changed

‎appengine/standard/ndb/queries/snippets.py

Copy file name to clipboardExpand all lines: appengine/standard/ndb/queries/snippets.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414

1515
from google.appengine.ext import ndb
16+
1617
from guestbook import Greeting
1718
from snippets_models import (Account, Address, Article,
1819
Bar, Contact, Employee, FlexEmployee, Manager)

‎blog/introduction_to_data_models_in_cloud_datastore/wiki_test.py

Copy file name to clipboardExpand all lines: blog/introduction_to_data_models_in_cloud_datastore/wiki_test.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# limitations under the License.
1313

1414
from gcp.testing.flaky import flaky
15+
1516
from wiki import main
1617

1718

‎language/sentiment/sentiment_analysis.py

Copy file name to clipboardExpand all lines: language/sentiment/sentiment_analysis.py
+5-7Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
'''Demonstrates how to make a simple call to the Natural Language API'''
14+
"""Demonstrates how to make a simple call to the Natural Language API."""
1515

1616
import argparse
17+
1718
from googleapiclient import discovery
1819
from oauth2client.client import GoogleCredentials
1920

2021

2122
def main(movie_review_filename):
22-
'''Run a sentiment analysis request on text within a passed filename.'''
23+
"""Run a sentiment analysis request on text within a passed filename."""
2324

2425
credentials = GoogleCredentials.get_application_default()
2526
service = discovery.build('language', 'v1', credentials=credentials)
@@ -41,13 +42,10 @@ def main(movie_review_filename):
4142
for i, sentence in enumerate(response['sentences']):
4243
sentence_sentiment = sentence['sentiment']['score']
4344
print('Sentence {} has a sentiment score of {}'.format(
44-
i,
45-
sentence_sentiment))
45+
i, sentence_sentiment))
4646

4747
print('Overall Sentiment: score of {} with magnitude of {}'.format(
48-
score,
49-
magnitude)
50-
)
48+
score, magnitude))
5149
return 0
5250

5351
print('Sentiment: score of {} with magnitude of {}'.format(

‎language/sentiment/sentiment_analysis_test.py

Copy file name to clipboardExpand all lines: language/sentiment/sentiment_analysis_test.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# limitations under the License.
1313

1414
import re
15+
1516
from sentiment_analysis import main
1617

1718

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.