Skip to content

Commit fb7ce1b

Browse files
authored
Merge pull request #214 from pyoceans/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents f862ce2 + 7dbea90 commit fb7ce1b

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ repos:
3939
- id: add-trailing-comma
4040

4141
- repo: https://github.com/astral-sh/ruff-pre-commit
42-
rev: v0.5.6
42+
rev: v0.6.3
4343
hooks:
4444
- id: ruff
4545
args: ["--fix", "--show-fixes"]

tests/test_plotting.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,21 @@ def _check_plot_works(f, *args, **kwargs):
4040

4141

4242
# Basic Plotting.
43-
@pytest.fixture()
43+
@pytest.fixture
4444
def xbt():
4545
"""Load XBT."""
4646
yield ctd.from_edf(data_path.joinpath("XBT.EDF.zip"))
4747
plt.close("all")
4848

4949

50-
@pytest.fixture()
50+
@pytest.fixture
5151
def fsi():
5252
"""Load FSI."""
5353
yield ctd.from_fsi(data_path.joinpath("FSI.txt.gz"), skiprows=9)
5454
plt.close("all")
5555

5656

57-
@pytest.fixture()
57+
@pytest.fixture
5858
def cnv():
5959
"""Load CNV."""
6060
yield ctd.from_cnv(data_path.joinpath("small.cnv.bz2"))

tests/test_processing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
import pytest
66

77

8-
@pytest.fixture()
8+
@pytest.fixture
99
def series():
1010
"""Load data series."""
1111
index = np.r_[np.linspace(-5, 10, 20), np.linspace(10, -5, 20)]
1212
return pd.Series(data=np.arange(len(index)), index=index)
1313

1414

15-
@pytest.fixture()
15+
@pytest.fixture
1616
def df():
1717
"""Load data frame."""
1818
index = np.r_[np.linspace(-5, 10, 20), np.linspace(10, -5, 20)]

tests/test_processing_real_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
data_path = Path(__file__).parent.joinpath("data")
1111

1212

13-
@pytest.fixture()
13+
@pytest.fixture
1414
def spiked_ctd():
1515
"""Load spiked CTD."""
1616
return ctd.from_cnv(data_path.joinpath("CTD-spiked-unfiltered.cnv.bz2"))
1717

1818

19-
@pytest.fixture()
19+
@pytest.fixture
2020
def filtered_ctd():
2121
"""Load spiked-filtered CTD."""
2222
return ctd.from_cnv(data_path.joinpath("CTD-spiked-filtered.cnv.bz2"))

tests/test_read.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,31 +39,31 @@ def test_uncompresed():
3939

4040

4141
# Test ctd DataFrame.
42-
@pytest.fixture()
42+
@pytest.fixture
4343
def xbt():
4444
"""Load zip EDF file."""
4545
return ctd.from_edf(data_path.joinpath("XBT.EDF.zip"))
4646

4747

48-
@pytest.fixture()
48+
@pytest.fixture
4949
def fsi():
5050
"""Load gzip FSI file."""
5151
return ctd.from_fsi(data_path.joinpath("FSI.txt.gz"), skiprows=9)
5252

5353

54-
@pytest.fixture()
54+
@pytest.fixture
5555
def cnv():
5656
"""Load bzip2 CNV file."""
5757
return ctd.from_cnv(data_path.joinpath("small.cnv.bz2"))
5858

5959

60-
@pytest.fixture()
60+
@pytest.fixture
6161
def btl():
6262
"""Load uncompressed BTL file."""
6363
return ctd.from_btl(data_path.joinpath("btl", "bottletest.btl"))
6464

6565

66-
@pytest.fixture()
66+
@pytest.fixture
6767
def btl_as_stream():
6868
"""Load stream BTL data."""
6969
with Path.open(
@@ -74,7 +74,7 @@ def btl_as_stream():
7474
return ctd.from_btl(stream)
7575

7676

77-
@pytest.fixture()
77+
@pytest.fixture
7878
def ros():
7979
"""Load uncompressed ROS file."""
8080
return ctd.rosette_summary(data_path.joinpath("CTD", "g01l03s01m-m2.ros"))

0 commit comments

Comments
 (0)