From e22141cb93ae01082e0d0e3167f6784993239b73 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 21 Sep 2026 16:50:46 +0000 Subject: [PATCH 1/2] chore: update pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.12.0 → v0.16.8](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.0...v0.16.8) - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) - [github.com/kynan/nbstripout: 0.8.1 → 0.9.1](https://github.com/kynan/nbstripout/compare/0.8.1...0.9.1) --- .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 6fbf11b..cd494b8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ ci: repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.12.0" + rev: "v0.16.8" hooks: - id: ruff types_or: [python, pyi, jupyter] @@ -17,7 +17,7 @@ repos: types_or: [python, pyi, jupyter] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: trailing-whitespace exclude: '.*\.fits$' @@ -31,7 +31,7 @@ repos: args: ["--maxkb=10000"] - repo: https://github.com/kynan/nbstripout - rev: 0.8.1 + rev: 0.9.1 hooks: - id: nbstripout args: ["--extra-keys=metadata.kernelspec metadata.language_info.version metadata.toc"] From 988f1955f2e8962c5c571ff20c8a270e2f7fc398 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 21 Sep 2026 16:52:08 +0000 Subject: [PATCH 2/2] style: pre-commit fixes --- gaia-visualization.ipynb | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/gaia-visualization.ipynb b/gaia-visualization.ipynb index 81789b2..7ce3110 100644 --- a/gaia-visualization.ipynb +++ b/gaia-visualization.ipynb @@ -62,18 +62,17 @@ "outputs": [], "source": [ "import warnings # So we can suppress expected warnings\n", - "import numpy as np\n", - "\n", - "from astroquery.gaia import Gaia # For data access\n", "\n", - "from astropy.coordinates import (\n", - " SkyCoord,\n", - ") # For storing a manipulation object sky positions\n", "import astropy.units as u\n", "\n", "# For plotting\n", "import matplotlib.pyplot as plt\n", - "import matplotlib.animation as animation\n", + "import numpy as np\n", + "from astropy.coordinates import (\n", + " SkyCoord,\n", + ") # For storing a manipulation object sky positions\n", + "from astroquery.gaia import Gaia # For data access\n", + "from matplotlib import animation\n", "\n", "plt.rcParams[\"animation.html\"] = (\n", " \"jshtml\" # To make the animations render correctly in the notebook\n",