From ee0c7751d3e07025f2ff562c4dc0c59b4c04c092 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 19 Dec 2023 10:50:08 +0100 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#207) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.6 → v0.1.8](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.6...v0.1.8) - [github.com/psf/black: 23.11.0 → 23.12.0](https://github.com/psf/black/compare/23.11.0...23.12.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- disdrodb/tests/test_l0/test_l0a_processing.py | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b355a144..37857e0f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,13 +6,13 @@ repos: - id: end-of-file-fixer - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.6 + rev: v0.1.8 hooks: - id: ruff args: [--fix] - repo: https://github.com/psf/black - rev: 23.11.0 + rev: 23.12.0 hooks: - id: black language_version: python3 diff --git a/disdrodb/tests/test_l0/test_l0a_processing.py b/disdrodb/tests/test_l0/test_l0a_processing.py index ebb721f3..25080bbe 100644 --- a/disdrodb/tests/test_l0/test_l0a_processing.py +++ b/disdrodb/tests/test_l0/test_l0a_processing.py @@ -596,12 +596,12 @@ def test_read_raw_files(): verbose = False # Create a test dataframe - df1 = pd.DataFrame({ - "time": pd.date_range(start="2022-01-01", end="2022-01-02", freq="H"), "value": np.random.rand(25) - }) - df2 = pd.DataFrame({ - "time": pd.date_range(start="2022-01-03", end="2022-01-04", freq="H"), "value": np.random.rand(25) - }) + df1 = pd.DataFrame( + {"time": pd.date_range(start="2022-01-01", end="2022-01-02", freq="H"), "value": np.random.rand(25)} + ) + df2 = pd.DataFrame( + {"time": pd.date_range(start="2022-01-03", end="2022-01-04", freq="H"), "value": np.random.rand(25)} + ) df_list = [df1, df2] # Test raise value error if empty filepaths list is passed