diff --git a/.ruff.toml b/.ruff.toml index efc104e..2565a60 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -2,7 +2,7 @@ target-version = "py310" -select = [ +lint.select = [ "B007", # Loop control variable {name} not used within loop body "B014", # Exception handler with duplicate exception "C", # complexity @@ -26,7 +26,7 @@ select = [ "W", # pycodestyle ] -ignore = [ +lint.ignore = [ "D202", # No blank lines allowed after function docstring "D203", # 1 blank line required before class docstring "D213", # Multi-line docstring summary should start at the second line @@ -57,11 +57,11 @@ ignore = [ "PLE0605", ] -[flake8-pytest-style] +[lint.flake8-pytest-style] fixture-parentheses = false -[pyupgrade] +[lint.pyupgrade] keep-runtime-typing = true -[mccabe] +[lint.mccabe] max-complexity = 25 \ No newline at end of file diff --git a/custom_components/pirateweather/weather.py b/custom_components/pirateweather/weather.py index 1410658..1cf76c6 100644 --- a/custom_components/pirateweather/weather.py +++ b/custom_components/pirateweather/weather.py @@ -258,7 +258,7 @@ def humidity(self): """Return the humidity.""" humidity = self._weather_coordinator.data.currently().d.get("humidity") * 100.0 - eturn round(humidity, 0) + return round(humidity, 0) @property def native_wind_speed(self):