Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #127

Merged
merged 2 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"]
Expand Down
8 changes: 4 additions & 4 deletions tests/test_fetchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
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()
g.fetcher.dataset_id = "whoi_406-20160902T1700"
return g, g.to_pandas()


@pytest.mark.vcr()
@pytest.mark.vcr
def test_variables(glider_grab):
"""Check if expected variables are being fetched."""
expected = [
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
root = Path(__file__).parent


@pytest.fixture()
@pytest.fixture
def glider_data():
"""Fixture to load whoi_406-20160902T1700."""
glider_grab = GliderDataFetcher()
Expand Down