Skip to content

Commit

Permalink
put skip if after pytest.parameterize()
Browse files Browse the repository at this point in the history
  • Loading branch information
kjmeagher committed Mar 4, 2024
1 parent 296ff81 commit aa36f21
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions examples/plot_analemma.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions examples/plot_sun_azimuth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aa36f21

Please sign in to comment.