Skip to content

Commit

Permalink
LNT: Run pre-commit. [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Taher Chegini committed Sep 14, 2024
1 parent 449f95e commit 0e62806
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from click.testing import CliRunner


@pytest.fixture()
@pytest.fixture
def runner():
"""Return a CliRunner."""
return CliRunner()
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down
6 changes: 3 additions & 3 deletions tests/test_pygridmet.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def assert_close(a: float, b: float, rtol: float = 1e-3) -> bool:


class TestByCoords:
@pytest.mark.speedup()
@pytest.mark.speedup
def test_snow(self):
clm = gridmet.get_bycoords(COORDS, DATES, snow=True, crs=ALT_CRS)
assert_close(clm["snow (mm)"].mean(), 0.0)
Expand All @@ -54,7 +54,7 @@ def test_daily(self):


class TestByGeom:
@pytest.mark.speedup()
@pytest.mark.speedup
def test_snow(self):
clm = gridmet.get_bygeom(GEOM, DAY, snow=True, snow_params={"t_snow": 0.5})
assert_close(clm.snow.mean().item(), 3.4895)
Expand Down Expand Up @@ -102,7 +102,7 @@ def test_geometry(self, runner):
assert ret.exit_code == 0
assert "Found 1 geometry" in ret.output

@pytest.mark.speedup()
@pytest.mark.speedup
def test_coords(self, runner):
params = {
"id": "coords_test",
Expand Down

0 comments on commit 0e62806

Please sign in to comment.