Skip to content

Commit ec7be9e

Browse files
committed
.
1 parent bd69405 commit ec7be9e

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/build-test.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,9 @@ jobs:
2727
- name: Install dependencies
2828
run: |
2929
uv sync --extra dev
30-
- name: Lint with flake8
30+
- name: Lint with ruff
3131
run: |
32-
# stop the build if there are Python syntax errors or undefined names
33-
uv run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
34-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
35-
uv run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
32+
uv run ruff check .
3633
- name: Test with pytest
3734
env:
3835
APIKEY: ${{ secrets.APIKEY }}

tests/test_download.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,13 @@ def test_download_epw(tmp_path, monkeypatch):
4949
leap_year,
5050
)
5151

52+
# Find the generated EPW file (filename format changed with refactoring)
53+
epw_files = list(tmp_path.glob("*.epw"))
54+
assert len(epw_files) == 1, f"Expected 1 EPW file, found {len(epw_files)}: {epw_files}"
55+
epw_file = epw_files[0]
56+
5257
data = epw.EPW()
53-
data.read(tmp_path / "NYC_40.75584_-73.982684_tmy.epw")
58+
data.read(epw_file)
5459

5560
assert data.dataframe.shape[0] == 8760
5661
assert data.dataframe["Year"].between(1998, datetime.now().year).all()

0 commit comments

Comments
 (0)