1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-20 02:48:57 +00:00

Bump ruff to 0.0.256 (#89734)

This commit is contained in:
epenet
2023-03-15 10:07:12 +01:00
committed by GitHub
parent 59de7f3057
commit 9719f817c0
3 changed files with 6 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
repos: repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit - repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.254 rev: v0.0.256
hooks: hooks:
- id: ruff - id: ruff
args: args:

View File

@@ -14,5 +14,5 @@ pycodestyle==2.10.0
pydocstyle==6.2.3 pydocstyle==6.2.3
pyflakes==3.0.1 pyflakes==3.0.1
pyupgrade==3.3.1 pyupgrade==3.3.1
ruff==0.0.254 ruff==0.0.256
yamllint==1.28.0 yamllint==1.28.0

View File

@@ -1,7 +1,8 @@
"""Test Trace websocket API.""" """Test Trace websocket API."""
import asyncio import asyncio
from collections import defaultdict
import json import json
from typing import Any, DefaultDict from typing import Any
from unittest.mock import patch from unittest.mock import patch
import pytest import pytest
@@ -391,7 +392,7 @@ async def test_get_trace(
trace_list = response["result"] trace_list = response["result"]
# Get all traces and generate expected stored traces # Get all traces and generate expected stored traces
traces = DefaultDict(list) traces = defaultdict(list)
for trace in trace_list: for trace in trace_list:
item_id = trace["item_id"] item_id = trace["item_id"]
run_id = trace["run_id"] run_id = trace["run_id"]
@@ -448,7 +449,7 @@ async def test_restore_traces(
trace_list = response["result"] trace_list = response["result"]
# Get all traces and generate expected stored traces # Get all traces and generate expected stored traces
traces = DefaultDict(list) traces = defaultdict(list)
contexts = {} contexts = {}
for trace in trace_list: for trace in trace_list:
item_id = trace["item_id"] item_id = trace["item_id"]