Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0662e10

Browse files
author
Takashi Matsuo
authored
chore: some lint fixes (GoogleCloudPlatform#3739)
1 parent f3bcc2b commit 0662e10

File tree

6 files changed

+16
-11
lines changed

6 files changed

+16
-11
lines changed

bigtable/quickstart_happybase/main_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
# limitations under the License.
1414

1515
import os
16-
1716
import random
1817

19-
import pytest
2018
from google.cloud import bigtable
19+
import pytest
20+
2121
from main import main
2222

2323
PROJECT = os.environ['GCLOUD_PROJECT']

bigtable/snippets/filters/filter_snippets.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16+
# [START bigtable_filters_limit_timestamp_range]
17+
import datetime
18+
19+
# [END bigtable_filters_limit_timestamp_range]
20+
1621
# [START bigtable_filters_limit_row_sample]
1722
# [START bigtable_filters_limit_row_regex]
1823
# [START bigtable_filters_limit_cells_per_col]
@@ -53,11 +58,6 @@
5358
# [END bigtable_filters_composing_interleave]
5459
# [END bigtable_filters_composing_condition]
5560

56-
# [START bigtable_filters_limit_timestamp_range]
57-
import datetime
58-
59-
60-
# [END bigtable_filters_limit_timestamp_range]
6161

6262
# [START bigtable_filters_limit_row_sample]
6363
def filter_limit_row_sample(project_id, instance_id, table_id):

bigtable/snippets/filters/filters_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@
1212
# limitations under the License.
1313

1414

15+
import datetime
1516
import os
1617
import uuid
1718

18-
import datetime
19-
import pytest
2019
from google.cloud import bigtable
20+
import pytest
2121

2222
import filter_snippets
2323

24+
2425
PROJECT = os.environ['GCLOUD_PROJECT']
2526
BIGTABLE_INSTANCE = os.environ['BIGTABLE_INSTANCE']
2627
TABLE_ID_PREFIX = 'mobile-time-series-{}'

bigtable/snippets/reads/reads_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
import datetime
1515
import os
1616
import uuid
17-
import pytest
1817

1918
from google.cloud import bigtable
19+
import pytest
2020

2121
import read_snippets
2222

23+
2324
PROJECT = os.environ['GCLOUD_PROJECT']
2425
BIGTABLE_INSTANCE = os.environ['BIGTABLE_INSTANCE']
2526
TABLE_ID_PREFIX = 'mobile-time-series-{}'

bigtable/snippets/writes/write_simple.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
15+
1516
# [START bigtable_writes_simple]
1617
import datetime
18+
1719
from google.cloud import bigtable
1820

1921

bigtable/snippets/writes/writes_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,18 @@
1414

1515
import os
1616
import uuid
17-
import pytest
1817

1918
import backoff
2019
from google.api_core.exceptions import DeadlineExceeded
2120
from google.cloud import bigtable
21+
import pytest
2222

2323
from .write_batch import write_batch
2424
from .write_conditionally import write_conditional
2525
from .write_increment import write_increment
2626
from .write_simple import write_simple
2727

28+
2829
PROJECT = os.environ['GCLOUD_PROJECT']
2930
BIGTABLE_INSTANCE = os.environ['BIGTABLE_INSTANCE']
3031
TABLE_ID_PREFIX = 'mobile-time-series-{}'

0 commit comments

Comments
 (0)