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 Aug 5, 2024
1 parent d59c73f commit 787b5b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import h5py
import pytest
import xarray as xr
import netCDF4 # type: ignore


def pytest_addoption(parser):
"""Add command-line flags for pytest."""
Expand All @@ -27,7 +27,7 @@ def netcdf4_file(tmpdir):

# Save it to disk as netCDF (in temporary directory)
filepath = f"{tmpdir}/air.nc"
ds.to_netcdf(filepath, format="NETCDF4", engine='netcdf4')
ds.to_netcdf(filepath, format="NETCDF4", engine="netcdf4")
ds.close()

return filepath
Expand All @@ -45,8 +45,8 @@ def netcdf4_files(tmpdir):
# Save it to disk as netCDF (in temporary directory)
filepath1 = f"{tmpdir}/air1.nc"
filepath2 = f"{tmpdir}/air2.nc"
ds1.to_netcdf(filepath1, format="NETCDF4", engine='netcdf4')
ds2.to_netcdf(filepath2, format="NETCDF4", engine='netcdf4')
ds1.to_netcdf(filepath1, format="NETCDF4", engine="netcdf4")
ds2.to_netcdf(filepath2, format="NETCDF4", engine="netcdf4")
ds1.close()
ds2.close()

Expand Down

0 comments on commit 787b5b0

Please sign in to comment.