diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f9457ff..6e22beb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,13 +27,13 @@ repos: additional_dependencies: [numpy] files: src/i3astropy - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.2.1 + rev: v0.3.0 hooks: - id: ruff args: [--fix, --show-fixes] - id: ruff-format - repo: https://github.com/pycqa/pylint - rev: v3.0.3 + rev: v3.1.0 hooks: - id: pylint - repo: https://github.com/codespell-project/codespell @@ -53,7 +53,7 @@ repos: - id: python-no-eval - id: python-use-type-annotations - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.5.4 + rev: v1.5.5 hooks: - id: forbid-crlf - id: forbid-tabs diff --git a/examples/plot_analemma.py b/examples/plot_analemma.py index 49d1c3d..8d256c1 100755 --- a/examples/plot_analemma.py +++ b/examples/plot_analemma.py @@ -10,6 +10,7 @@ with IceCube Azimuth labeled and the positions of the sun at certain times. This Demonstrates that i3astropy is correctly orienting the IceCube coordinate system. """ + import matplotlib.dates as mdates import numpy as np import pylab as plt diff --git a/examples/plot_sun_azimuth.py b/examples/plot_sun_azimuth.py index 8e20acd..9698600 100755 --- a/examples/plot_sun_azimuth.py +++ b/examples/plot_sun_azimuth.py @@ -10,6 +10,7 @@ Grid East at 6:00, Grid North at noon, and Grid West at 18:00 the example makes a plot to verify that coordinates are defined correctly. """ + from pathlib import Path import matplotlib.dates as mdates diff --git a/tests/test_time.py b/tests/test_time.py index 0d61e89..8aab970 100755 --- a/tests/test_time.py +++ b/tests/test_time.py @@ -104,8 +104,8 @@ def test_times_array(): Time(2020.5, 0, format="i3time") -@pytest.mark.skipif("I3Time" not in globals(), reason="Not in an icetray invironment") @pytest.mark.parametrize(("daq_year", "daq_time", "iso"), times) +@pytest.mark.skipif("I3Time" not in globals(), reason="Not in an icetray invironment") def test_icetray(daq_year, daq_time, iso): """Test i3astropy.I3Time matches dataclasses.I3Time.""" di3t = I3Time(daq_year, daq_time)