Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 3, 2023
1 parent ce57c5e commit c46be6c
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion pangeo_forge_recipes/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ def expand(self, pcoll: beam.PCollection) -> beam.PCollection:

@dataclass
class StoreDatasetFragments(beam.PTransform):

target_store: beam.PCollection # side input

def expand(self, pcoll: beam.PCollection) -> beam.PCollection:
Expand Down
1 change: 0 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ def get_open_port():


def start_http_server(paths, request, username=None, password=None, required_query_string=None):

first_path = paths[0]
# assume that all files are in the same directory
basedir = os.path.dirname(first_path)
Expand Down
1 change: 0 additions & 1 deletion tests/http_auth_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
@click.option("--password")
@click.option("--required-query-string")
def serve_forever(address, port, username, password, required_query_string):

port = int(port)

class Handler(http.server.SimpleHTTPRequestHandler):
Expand Down
1 change: 0 additions & 1 deletion tests/test_openers.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ def test_direct_open_with_xarray(public_url_and_type, load, xarray_open_kwargs):

def is_valid_inline_threshold():
def _is_valid_inline_threshold(references):

assert isinstance(references[0][0]["refs"]["lat/0"], list)

return _is_valid_inline_threshold
Expand Down
3 changes: 0 additions & 3 deletions tests/test_patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ def test_pattern_from_file_sequence():

@pytest.mark.parametrize("pickle", [False, True])
def test_file_pattern_concat_merge(runtime_secrets, pickle, concat_merge_pattern_with_kwargs):

fp, times, varnames, format_function, kwargs = concat_merge_pattern_with_kwargs

if runtime_secrets:
Expand Down Expand Up @@ -155,7 +154,6 @@ def test_incompatible_kwargs():

@pytest.mark.parametrize("nkeep", [1, 2])
def test_prune(nkeep, concat_merge_pattern_with_kwargs, runtime_secrets):

fp = concat_merge_pattern_with_kwargs[0]

if runtime_secrets:
Expand Down Expand Up @@ -190,7 +188,6 @@ def get_kwargs(file_pattern):

@pytest.mark.parametrize("file_type_value", [ft.value for ft in list(FileType)] + ["unsupported"])
def test_setting_file_types(file_type_value):

file_type_kwargs = {"file_type": file_type_value}

if not file_type_value == "unsupported":
Expand Down
1 change: 0 additions & 1 deletion tests/test_rechunking.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ def test_combine_fragments_multidim(time_chunk, lat_chunk):


def test_combine_fragments_errors():

ds = make_ds(nt=1)
group = (("time", 0),) # not actually used

Expand Down
1 change: 0 additions & 1 deletion tests/test_serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def base_pattern(end_date):


def get_new_pattern_with_next_url(end_date, nitems_per_file):

fmt = "%Y-%m-%d"

def increment_end_date(ndays):
Expand Down
1 change: 0 additions & 1 deletion tests/test_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ def test_OpenWithKerchunk_direct(pattern_direct, pipeline):

@pytest.mark.parametrize("target_chunks", [{}, {"time": 1}, {"time": 2}, {"time": 2, "lon": 9}])
def test_PrepareZarrTarget(pipeline, tmp_target_url, target_chunks):

ds = make_ds()
schema = dataset_to_schema(ds)

Expand Down
1 change: 0 additions & 1 deletion tests/test_writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def temp_store(tmp_path):


def test_store_dataset_fragment(temp_store):

ds = make_ds(non_dim_coords=True)
schema = ds.to_dict(data=False, encoding=True)
schema["chunks"] = {}
Expand Down

0 comments on commit c46be6c

Please sign in to comment.