Skip to content

Commit

Permalink
update docs and code to match new rule
Browse files Browse the repository at this point in the history
  • Loading branch information
kiraware committed Sep 18, 2024
1 parent f72fac7 commit cd972ad
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions src/bmkg/parsers/parse_weather_forecast_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def parse_weather_forecast_data(weather_forecast_data: str | bytes) -> WeatherFo
),
parameters["wd"],
parameters["ws"],
strict=False,
)
)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_parsers/test_parse_datetime_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ def test_parse_element_with_invalid_attribute():
with pytest.raises(
WeatherForecastParseError, match="datetime attribute in timerange tag not found"
):
for dt in parse_datetime_element(element):
for _dt in parse_datetime_element(element):
pass
4 changes: 2 additions & 2 deletions tests/test_parsers/test_parse_humidity_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_parse_element_with_invalid_attribute():
with pytest.raises(
WeatherForecastParseError, match="value tag in timerange tag not found"
):
for humidity in parse_humidity_element(element):
for _humidity in parse_humidity_element(element):
pass


Expand All @@ -31,5 +31,5 @@ def test_parse_element_with_invalid_humidity_text():
with pytest.raises(
WeatherForecastParseError, match="value tag in timerange tag has no text"
):
for humidity in parse_humidity_element(element):
for _humidity in parse_humidity_element(element):
pass
4 changes: 2 additions & 2 deletions tests/test_parsers/test_parse_temperature_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_parse_element_with_invalid_attribute():
WeatherForecastParseError,
match="one or more value tag in timerange tag not found",
):
for temperature in parse_temperature_element(element):
for _temperature in parse_temperature_element(element):
pass


Expand Down Expand Up @@ -49,5 +49,5 @@ def test_parse_element_with_invalid_value_elements_text(index, err_msg):
WeatherForecastParseError,
match=err_msg,
):
for temperature in parse_temperature_element(element):
for _temperature in parse_temperature_element(element):
pass
4 changes: 2 additions & 2 deletions tests/test_parsers/test_parse_weather_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_parse_element_with_invalid_attribute():
with pytest.raises(
WeatherForecastParseError, match="value tag in timerange tag not found"
):
for weather in parse_weather_element(element):
for _weather in parse_weather_element(element):
pass


Expand All @@ -31,5 +31,5 @@ def test_parse_element_with_invalid_weather_text():
with pytest.raises(
WeatherForecastParseError, match="value tag in timerange tag has no text"
):
for weather in parse_weather_element(element):
for _weather in parse_weather_element(element):
pass
4 changes: 2 additions & 2 deletions tests/test_parsers/test_parse_wind_direction_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_parse_element_with_invalid_attribute():
WeatherForecastParseError,
match="one or more value tag in timerange tag not found",
):
for wind_direction in parse_wind_direction_element(element):
for _wind_direction in parse_wind_direction_element(element):
pass


Expand Down Expand Up @@ -50,5 +50,5 @@ def test_parse_element_with_invalid_value_elements_text(index, err_msg):
WeatherForecastParseError,
match=err_msg,
):
for wind_direction in parse_wind_direction_element(element):
for _wind_direction in parse_wind_direction_element(element):
pass
4 changes: 2 additions & 2 deletions tests/test_parsers/test_parse_wind_speed_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_parse_element_with_invalid_attribute():
WeatherForecastParseError,
match="one or more value tag in timerange tag not found",
):
for wind_speed in parse_wind_speed_element(element):
for _wind_speed in parse_wind_speed_element(element):
pass


Expand Down Expand Up @@ -51,5 +51,5 @@ def test_parse_element_with_invalid_value_elements_text(index, err_msg):
WeatherForecastParseError,
match=err_msg,
):
for wind_speed in parse_wind_speed_element(element):
for _wind_speed in parse_wind_speed_element(element):
pass

0 comments on commit cd972ad

Please sign in to comment.