Skip to content

Commit

Permalink
Fix lint error and depreciated settings
Browse files Browse the repository at this point in the history
  • Loading branch information
cloneofghosts committed Feb 4, 2024
1 parent d8d69dd commit dd92ec2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion custom_components/pirateweather/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit dd92ec2

Please sign in to comment.