Skip to content

Commit

Permalink
Enable remaining HomeAssistant rules in ruff (#1514)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrudd2 authored Apr 25, 2023
1 parent f9ac901 commit 19f931f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ ignore = [
]
line-length = 120
select = [
"B007", # Loop control variable {name} not used within loop body
"B014", # Exception handler with duplicate exception
"C", # complexity
"D", # docstrings
"E", # pycodestyle errors
"W", # pycodestyle warnings
Expand All @@ -31,8 +34,8 @@ select = [
"PLC", # pylint
"PGH", # pygrep-hooks
# "TRY", # tryceratops
"TRY004", # Prefer TypeError exception for invalid type
# "B", # bandit
"C", # complexity
]
[pydocstyle]
convention = "pep257"
Expand Down
4 changes: 2 additions & 2 deletions test/test_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def test_request_lookup(self):

def test_response_working(self):
"""Test a working response factory decoders"""
for func, msg in self.response:
for _func, msg in self.response:
self.client.decode(msg)

def test_response_errors(self):
Expand All @@ -134,7 +134,7 @@ def test_response_errors(self):

def test_requests_working(self):
"""Test a working request factory decoders"""
for func, msg in self.request:
for _func, msg in self.request:
self.server.decode(msg)

def test_client_factory_fails(self):
Expand Down

0 comments on commit 19f931f

Please sign in to comment.