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 ed089b9 commit ccb8063
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 23 deletions.
18 changes: 0 additions & 18 deletions .flake8

This file was deleted.

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_pydaymet.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_pet_arid(self):
)
assert_close(clm["pet (mm/day)"].mean(), 3.0912)

@pytest.mark.speedup()
@pytest.mark.speedup
def test_snow(self):
clm = daymet.get_bycoords(COORDS, DATES, snow=True, crs=ALT_CRS)
assert_close(clm["snow (mm/day)"].mean(), 0.0)
Expand Down Expand Up @@ -84,7 +84,7 @@ def test_pet_arid(self):
)
assert_close(clm.pet.mean().compute().item(), 0.1066)

@pytest.mark.speedup()
@pytest.mark.speedup
def test_snow(self):
clm = daymet.get_bygeom(GEOM, DAY, snow=True, snow_params={"t_snow": 0.5})
assert_close(clm.snow.mean().compute().item(), 3.4999)
Expand Down Expand Up @@ -150,7 +150,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 ccb8063

Please sign in to comment.