diff --git a/pyproject.toml b/pyproject.toml index 646c355..762c1cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -76,6 +76,7 @@ ignore = [ "E721", # Comparing types instead of isinstance "E741", # Ambiguous variable names "E501", # Conflicts with ruff format + "E722", # Bare except ] select = [ # Pyflakes diff --git a/scripts/glas/01_cache_glas_data.ipynb b/scripts/glas/01_cache_glas_data.ipynb index d52aa49..009cc95 100644 --- a/scripts/glas/01_cache_glas_data.ipynb +++ b/scripts/glas/01_cache_glas_data.ipynb @@ -10,7 +10,7 @@ }, "outputs": [], "source": [ - "pip install git+https://github.com/pangeo-forge/pangeo-forge.git" + "%pip install git+https://github.com/pangeo-forge/pangeo-forge.git" ] }, { @@ -371,7 +371,7 @@ " print(f\"HTTPError {e.code}, {e.reason}\", filename)\n", " except URLError as e:\n", " print(f\"URLError: {e.reason}\", filename)\n", - " except OSError:\n", + " except OSError as e:\n", " print(f\"IOError: {e.reason}\", filename)\n", " except KeyboardInterrupt:\n", " quit()\n", diff --git a/scripts/gridmet/01_gridmet_to_zarr.ipynb b/scripts/gridmet/01_gridmet_to_zarr.ipynb index bb5550b..97e50cf 100644 --- a/scripts/gridmet/01_gridmet_to_zarr.ipynb +++ b/scripts/gridmet/01_gridmet_to_zarr.ipynb @@ -91,7 +91,7 @@ "ds_list = []\n", "for v in variables:\n", " print(v)\n", - " ds_list.append(xr.concat([source(variable=v, year=y).to_dask() for y in years], dim=\"day\"))" + " ds_list.append(xr.concat([source(variable=v, year=y).to_dask() for y in years], dim=\"day\")) # noqa" ] }, {