Skip to content

Commit a9e23c7

Browse files
committed
Fix flake8 warnings
1 parent 10e27cb commit a9e23c7

File tree

6 files changed

+28
-12
lines changed

6 files changed

+28
-12
lines changed

pvlib/tests/iotools/test_bsrn.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@
77
import os
88
import tempfile
99
from pvlib.iotools import read_bsrn, get_bsrn
10-
from ..conftest import (TESTS_DATA_DIR, RERUNS, RERUNS_DELAY, assert_index_equal,
11-
requires_bsrn_credentials)
10+
from ..conftest import (
11+
TESTS_DATA_DIR,
12+
RERUNS,
13+
RERUNS_DELAY,
14+
assert_index_equal,
15+
requires_bsrn_credentials,
16+
)
1217

1318

1419
@pytest.fixture(scope="module")

pvlib/tests/iotools/test_psm3.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from requests import HTTPError
1212
from io import StringIO
1313
import warnings
14-
from pvlib._deprecation import pvlibDeprecationWarning
1514

1615
TMY_TEST_DATA = TESTS_DATA_DIR / 'test_psm3_tmy-2017.csv'
1716
YEAR_TEST_DATA = TESTS_DATA_DIR / 'test_psm3_2017.csv'

pvlib/tests/iotools/test_pvgis.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@
1010
from pvlib.iotools import get_pvgis_tmy, read_pvgis_tmy
1111
from pvlib.iotools import get_pvgis_hourly, read_pvgis_hourly
1212
from pvlib.iotools import get_pvgis_horizon
13-
from ..conftest import (TESTS_DATA_DIR, RERUNS, RERUNS_DELAY, assert_frame_equal,
14-
assert_series_equal)
13+
from ..conftest import (
14+
TESTS_DATA_DIR,
15+
RERUNS,
16+
RERUNS_DELAY,
17+
assert_frame_equal,
18+
assert_series_equal,
19+
)
1520

1621

1722
# PVGIS Hourly tests
@@ -304,7 +309,9 @@ def test_read_pvgis_hourly_empty_file():
304309
# PVGIS TMY tests
305310
@pytest.fixture
306311
def expected():
307-
return pd.read_csv(TESTS_DATA_DIR / 'pvgis_tmy_test.dat', index_col='time(UTC)')
312+
return pd.read_csv(
313+
TESTS_DATA_DIR / "pvgis_tmy_test.dat", index_col="time(UTC)"
314+
)
308315

309316

310317
@pytest.fixture

pvlib/tests/iotools/test_srml.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
import pytest
44

55
from pvlib.iotools import srml
6-
from ..conftest import (TESTS_DATA_DIR, RERUNS, RERUNS_DELAY, assert_index_equal,
7-
assert_frame_equal)
6+
from ..conftest import (
7+
TESTS_DATA_DIR,
8+
RERUNS,
9+
RERUNS_DELAY,
10+
assert_index_equal,
11+
assert_frame_equal,
12+
)
813

914
srml_testfile = TESTS_DATA_DIR / 'SRML-day-EUPO1801.txt'
1015

pvlib/tests/test_soiling.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,10 @@ def test_hsu_variable_time_intervals(rainfall_input, expected_output_3):
147147
@pytest.fixture
148148
def greensboro_rain():
149149
# get TMY3 data with rain
150-
greensboro, _ = read_tmy3(PVLIB_DATA_DIR / '723170TYA.CSV', coerce_year=1990,
151-
map_variables=True)
152-
return greensboro['Lprecip depth (mm)']
150+
greensboro, _ = read_tmy3(
151+
PVLIB_DATA_DIR / "723170TYA.CSV", coerce_year=1990, map_variables=True
152+
)
153+
return greensboro["Lprecip depth (mm)"]
153154

154155

155156
@pytest.fixture

pvlib/tests/test_tracking.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import pvlib
99
from pvlib import tracking
1010
from .conftest import TESTS_DATA_DIR, assert_frame_equal, assert_series_equal
11-
from pvlib._deprecation import pvlibDeprecationWarning
1211

1312
SINGLEAXIS_COL_ORDER = ['tracker_theta', 'aoi',
1413
'surface_azimuth', 'surface_tilt']

0 commit comments

Comments
 (0)