From 5f6e255ded17ff3463315ccbe2aa72d28cb2749d Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Sun, 6 Oct 2019 09:34:01 -0500 Subject: [PATCH] fix some line length violations in weather/ircplugin.py --- weather/ircplugin.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/weather/ircplugin.py b/weather/ircplugin.py index 0d88645..8e5d746 100644 --- a/weather/ircplugin.py +++ b/weather/ircplugin.py @@ -36,12 +36,15 @@ class Weather(Plugin): weather = weather_summary(queryitems[0]) weather_output = (f"Weather in {weather['location']}: {weather['current']['description']}. " f"{weather['current']['temp_F']}/{weather['current']['temp_C']}, " - f"feels like {weather['current']['feels_like_temp_F']}/{weather['current']['feels_like_temp_C']}. " - f"Wind {weather['current']['wind_speed']} from the {weather['current']['wind_direction']}. " + f"feels like {weather['current']['feels_like_temp_F']}/" + f"{weather['current']['feels_like_temp_C']}. " + f"Wind {weather['current']['wind_speed']} " + f"from the {weather['current']['wind_direction']}. " f"Visibility {weather['current']['visibility']}. " f"Precipitation {weather['current']['precipitation']}. " f"Pressure {weather['current']['pressure']}. " - f"Cloud cover {weather['current']['cloud_cover']}. UV index {weather['current']['uv_index']}. " + f"Cloud cover {weather['current']['cloud_cover']}. " + f"UV index {weather['current']['uv_index']}. " f"Today: {weather['today_forecast']['noteworthy']}, " f"High {weather['today_forecast']['high_F']}/{weather['today_forecast']['high_C']}, " f"Low {weather['today_forecast']['low_F']}/{weather['today_forecast']['low_C']}. " @@ -49,9 +52,10 @@ class Weather(Plugin): f"High {weather['tomorrow_forecast']['high_F']}/{weather['tomorrow_forecast']['high_C']}, " f"Low {weather['tomorrow_forecast']['low_F']}/{weather['tomorrow_forecast']['low_C']}. " f"Day after tomorrow: {weather['day_after_tomorrow_forecast']['noteworthy']}, " - f"High {weather['day_after_tomorrow_forecast']['high_F']}/{weather['day_after_tomorrow_forecast']['high_C']}, " - f"Low {weather['day_after_tomorrow_forecast']['low_F']}/{weather['day_after_tomorrow_forecast']['low_C']}." - ) + f"High {weather['day_after_tomorrow_forecast']['high_F']}/" + f"{weather['day_after_tomorrow_forecast']['high_C']}, " + f"Low {weather['day_after_tomorrow_forecast']['low_F']}/" + f"{weather['day_after_tomorrow_forecast']['low_C']}.") return self.bot.reply(event, weather_output)