From bb2ee17c6c20dff2342e267f3305e218aa779bd3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 1 Nov 2024 13:00:39 -0400 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#13) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.4.9 → v0.7.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.9...v0.7.1) - [github.com/psf/black-pre-commit-mirror: 24.4.2 → 24.10.0](https://github.com/psf/black-pre-commit-mirror/compare/24.4.2...24.10.0) * [pre-commit.ci] Apply import ordering to Jupyter notebooks. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Owen Littlejohns --- .pre-commit-config.yaml | 6 +++--- docs/HOSS_DAAC_Operator_Documentation.ipynb | 4 ++-- docs/HOSS_User_Documentation.ipynb | 1 - docs/requirements.txt | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 89cf29a..033dc6d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ ci: autofix_prs: false repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -10,12 +10,12 @@ repos: - id: check-yaml - id: check-added-large-files - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.9 + rev: v0.7.1 hooks: - id: ruff args: ["--fix", "--show-fixes", "--select", "I"] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 24.4.2 + rev: 24.10.0 hooks: - id: black-jupyter args: ["--skip-string-normalization"] diff --git a/docs/HOSS_DAAC_Operator_Documentation.ipynb b/docs/HOSS_DAAC_Operator_Documentation.ipynb index c13ae67..532c86f 100644 --- a/docs/HOSS_DAAC_Operator_Documentation.ipynb +++ b/docs/HOSS_DAAC_Operator_Documentation.ipynb @@ -93,8 +93,8 @@ "from datetime import datetime\n", "from os import replace\n", "\n", - "from harmony import BBox, Client, Collection, Environment, Request\n", - "import xarray as xr" + "import xarray as xr\n", + "from harmony import BBox, Client, Collection, Environment, Request" ] }, { diff --git a/docs/HOSS_User_Documentation.ipynb b/docs/HOSS_User_Documentation.ipynb index 589fdc9..6f61165 100644 --- a/docs/HOSS_User_Documentation.ipynb +++ b/docs/HOSS_User_Documentation.ipynb @@ -94,7 +94,6 @@ "source": [ "from harmony import BBox, Client, Collection, Environment, Request\n", "\n", - "\n", "harmony_client = Client(env=Environment.UAT)\n", "\n", "demo_directory = '.'\n", diff --git a/docs/requirements.txt b/docs/requirements.txt index dd7a29c..700910c 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -16,5 +16,5 @@ # harmony-py~=0.4.10 netCDF4~=1.6.4 -notebook~=7.0.4 +notebook~=7.2.2 xarray~=2023.9.0