From 466d7ebef20418a2e7ce43540113858529a13960 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 19:17:14 +0000 Subject: [PATCH 1/4] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1) - [github.com/astral-sh/ruff-pre-commit: v0.1.9 → v0.2.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.9...v0.2.0) - [github.com/tox-dev/pyproject-fmt: 1.5.3 → 1.7.0](https://github.com/tox-dev/pyproject-fmt/compare/1.5.3...1.7.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ec2627b..9587066 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: files: requirements-dev.txt - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black language_version: python3 @@ -56,12 +56,12 @@ repos: - id: add-trailing-comma - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.9 + rev: v0.2.0 hooks: - id: ruff - repo: https://github.com/tox-dev/pyproject-fmt - rev: 1.5.3 + rev: 1.7.0 hooks: - id: pyproject-fmt From 90d2af787246319ba83232812c3d022e47d7447f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 19:17:56 +0000 Subject: [PATCH 2/4] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- erddapy/core/interfaces.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erddapy/core/interfaces.py b/erddapy/core/interfaces.py index b50a474..74ce9f9 100644 --- a/erddapy/core/interfaces.py +++ b/erddapy/core/interfaces.py @@ -4,6 +4,7 @@ This module takes an URL or the bytes response of a request and converts it to Pandas, XArray, Iris, etc. objects. """ + from typing import TYPE_CHECKING, Dict, Optional import pandas as pd From d3c4620f655a83b072831eafc0e139f9b54b4c9d Mon Sep 17 00:00:00 2001 From: Filipe Date: Mon, 5 Feb 2024 16:31:11 -0300 Subject: [PATCH 3/4] workaround pandas pyarrow deprecation warning for now --- requirements-dev.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements-dev.txt b/requirements-dev.txt index 660dcd8..46aa620 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -11,6 +11,7 @@ netcdf4 pendulum>=2.0.1 pooch pre-commit +pyarrow pytest pytest-cov pytest-sugar From 3797d3f7a7ab1b0884cd2109c29c3f9ddf0e2b22 Mon Sep 17 00:00:00 2001 From: Filipe Date: Mon, 5 Feb 2024 16:56:19 -0300 Subject: [PATCH 4/4] this can be remove once pandas is updated to 3.0 --- .github/workflows/tests_core.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests_core.yml b/.github/workflows/tests_core.yml index ba66bec..591ba10 100644 --- a/.github/workflows/tests_core.yml +++ b/.github/workflows/tests_core.yml @@ -23,7 +23,7 @@ jobs: - name: Install run: > python -m pip install . - && python -m pip install pytest + && python -m pip install pytest pyarrow - name: Core Tests run: python -m pytest -rxs tests/test_erddapy.py