From 0e628066f6731b7d8e6e1c3a812d3740c6372d76 Mon Sep 17 00:00:00 2001 From: Taher Chegini Date: Sat, 14 Sep 2024 12:36:14 -0400 Subject: [PATCH] LNT: Run pre-commit. [skip ci] --- conftest.py | 2 +- pyproject.toml | 1 - tests/test_pygridmet.py | 6 +++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/conftest.py b/conftest.py index eb5133f..90d44d6 100644 --- a/conftest.py +++ b/conftest.py @@ -6,7 +6,7 @@ from click.testing import CliRunner -@pytest.fixture() +@pytest.fixture def runner(): """Return a CliRunner.""" return CliRunner() diff --git a/pyproject.toml b/pyproject.toml index dfe0988..7c6f377 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", diff --git a/tests/test_pygridmet.py b/tests/test_pygridmet.py index 0daa0bc..4072515 100644 --- a/tests/test_pygridmet.py +++ b/tests/test_pygridmet.py @@ -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) @@ -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) @@ -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",