Skip to content

chore: some lint fixes #3739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bigtable/quickstart_happybase/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
# limitations under the License.

import os

import random

import pytest
from google.cloud import bigtable
import pytest

from main import main

PROJECT = os.environ['GCLOUD_PROJECT']
Expand Down
10 changes: 5 additions & 5 deletions bigtable/snippets/filters/filter_snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# [START bigtable_filters_limit_timestamp_range]
import datetime

# [END bigtable_filters_limit_timestamp_range]

# [START bigtable_filters_limit_row_sample]
# [START bigtable_filters_limit_row_regex]
# [START bigtable_filters_limit_cells_per_col]
Expand Down Expand Up @@ -53,11 +58,6 @@
# [END bigtable_filters_composing_interleave]
# [END bigtable_filters_composing_condition]

# [START bigtable_filters_limit_timestamp_range]
import datetime


# [END bigtable_filters_limit_timestamp_range]

# [START bigtable_filters_limit_row_sample]
def filter_limit_row_sample(project_id, instance_id, table_id):
Expand Down
5 changes: 3 additions & 2 deletions bigtable/snippets/filters/filters_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@
# limitations under the License.


import datetime
import os
import uuid

import datetime
import pytest
from google.cloud import bigtable
import pytest

import filter_snippets


PROJECT = os.environ['GCLOUD_PROJECT']
BIGTABLE_INSTANCE = os.environ['BIGTABLE_INSTANCE']
TABLE_ID_PREFIX = 'mobile-time-series-{}'
Expand Down
3 changes: 2 additions & 1 deletion bigtable/snippets/reads/reads_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
import datetime
import os
import uuid
import pytest

from google.cloud import bigtable
import pytest

import read_snippets


PROJECT = os.environ['GCLOUD_PROJECT']
BIGTABLE_INSTANCE = os.environ['BIGTABLE_INSTANCE']
TABLE_ID_PREFIX = 'mobile-time-series-{}'
Expand Down
2 changes: 2 additions & 0 deletions bigtable/snippets/writes/write_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# [START bigtable_writes_simple]
import datetime

from google.cloud import bigtable


Expand Down
3 changes: 2 additions & 1 deletion bigtable/snippets/writes/writes_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@

import os
import uuid
import pytest

import backoff
from google.api_core.exceptions import DeadlineExceeded
from google.cloud import bigtable
import pytest

from .write_batch import write_batch
from .write_conditionally import write_conditional
from .write_increment import write_increment
from .write_simple import write_simple


PROJECT = os.environ['GCLOUD_PROJECT']
BIGTABLE_INSTANCE = os.environ['BIGTABLE_INSTANCE']
TABLE_ID_PREFIX = 'mobile-time-series-{}'
Expand Down