diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6fbf11b..bf42ca4 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.9" 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"] 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",