From 929fc1b85cb9d2c6a49591444eefe5f2a420dce0 Mon Sep 17 00:00:00 2001 From: Alessandro Amici Date: Sun, 15 Oct 2023 20:07:19 +0200 Subject: [PATCH] Code style --- cfgrib/__main__.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/cfgrib/__main__.py b/cfgrib/__main__.py index 1a06f5b5..e91473fd 100644 --- a/cfgrib/__main__.py +++ b/cfgrib/__main__.py @@ -57,8 +57,12 @@ def selfcheck() -> None: @cfgrib_cli.command("to_netcdf") @click.argument("inpaths", nargs=-1) @click.option("--outpath", "-o", default=None, help="Filename of the output netcdf file.") -@click.option("--cdm", "-c", default=None, help="Coordinate model to translate the grib coordinates to.") -@click.option("--engine", "-e", default="cfgrib", help="xarray engine to use in xarray.open_dataset.") +@click.option( + "--cdm", "-c", default=None, help="Coordinate model to translate the grib coordinates to." +) +@click.option( + "--engine", "-e", default="cfgrib", help="xarray engine to use in xarray.open_dataset." +) @click.option( "--backend-kwargs-json", "-b", @@ -88,13 +92,7 @@ def selfcheck() -> None: ), ) def to_netcdf( - inpaths, - outpath, - cdm, - engine, - backend_kwargs_json, - netcdf_kwargs_json, - var_encoding_json, + inpaths, outpath, cdm, engine, backend_kwargs_json, netcdf_kwargs_json, var_encoding_json ): # type: (T.List[str], str, str, str, str, str, str) -> None import xarray as xr