From e54582d51f5970761075d4f97ed0b78f993a126f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Sep 2024 20:54:38 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/mirrors-mypy: v1.11.1 → v1.11.2](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.1...v1.11.2) - [github.com/astral-sh/ruff-pre-commit: v0.5.6 → v0.6.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.6...v0.6.3) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5789ab3..905ebb2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: files: requirements-dev.txt - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.1 + rev: v1.11.2 hooks: - id: mypy exclude: docs/source/conf.py @@ -50,7 +50,7 @@ repos: - id: add-trailing-comma - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.6 + rev: v0.6.3 hooks: - id: ruff args: ["--fix", "--show-fixes"] From 6a8daeed389431a140a076a6e0758e31cd57bc67 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Sep 2024 20:55:03 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_fetchers.py | 8 ++++---- tests/test_plotting.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_fetchers.py b/tests/test_fetchers.py index 5eb47fe..f793c25 100644 --- a/tests/test_fetchers.py +++ b/tests/test_fetchers.py @@ -6,8 +6,8 @@ from gliderpy.servers import server_parameter_rename -@pytest.fixture() -@pytest.mark.web() +@pytest.fixture +@pytest.mark.web def glider_grab(): """Create the basic query object for testing.""" g = GliderDataFetcher() @@ -15,7 +15,7 @@ def glider_grab(): return g, g.to_pandas() -@pytest.mark.vcr() +@pytest.mark.vcr def test_variables(glider_grab): """Check if expected variables are being fetched.""" expected = [ @@ -31,7 +31,7 @@ def test_variables(glider_grab): assert sorted(g.fetcher.variables) == sorted(expected) -@pytest.mark.vcr() +@pytest.mark.vcr def test_standardise_variables(glider_grab): """Check if IOOS variables are properly renamed.""" g, df = glider_grab diff --git a/tests/test_plotting.py b/tests/test_plotting.py index 2eb1af7..faac256 100644 --- a/tests/test_plotting.py +++ b/tests/test_plotting.py @@ -16,7 +16,7 @@ root = Path(__file__).parent -@pytest.fixture() +@pytest.fixture def glider_data(): """Fixture to load whoi_406-20160902T1700.""" glider_grab = GliderDataFetcher()