From 16961b052ffaa1062a61bfded046012ab80c36f9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 6 Mar 2024 22:03:10 +0100 Subject: [PATCH] Bump ruff from 0.2.2 to 0.3.0 (#615) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcel van der Veldt --- main.py | 1 + matter_server/client/__init__.py | 1 + matter_server/client/exceptions.py | 1 + matter_server/client/models/device_types.py | 1 + matter_server/common/errors.py | 1 + matter_server/common/helpers/api.py | 1 + matter_server/server/helpers/custom_web_runner.py | 1 + matter_server/server/storage.py | 1 + matter_server/server/vendor_info.py | 1 + pyproject.toml | 2 +- scripts/beautify_diagnostics.py | 1 + scripts/generate_devices.py | 1 + 12 files changed, 12 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 7a8b1f50..2f1facb0 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,5 @@ """Run the Matter Server.""" + import sys from matter_server.server.__main__ import main diff --git a/matter_server/client/__init__.py b/matter_server/client/__init__.py index 7dbd258c..602ebaa5 100644 --- a/matter_server/client/__init__.py +++ b/matter_server/client/__init__.py @@ -1,4 +1,5 @@ """Client for the MatterServer.""" + from .client import MatterClient __all__ = ["MatterClient"] diff --git a/matter_server/client/exceptions.py b/matter_server/client/exceptions.py index 0187e7f1..6019ebe0 100644 --- a/matter_server/client/exceptions.py +++ b/matter_server/client/exceptions.py @@ -1,4 +1,5 @@ """Client-specific Exceptions for matter-server library.""" + from __future__ import annotations diff --git a/matter_server/client/models/device_types.py b/matter_server/client/models/device_types.py index cc28367b..f575aaf0 100644 --- a/matter_server/client/models/device_types.py +++ b/matter_server/client/models/device_types.py @@ -4,6 +4,7 @@ This file is auto generated from `zcl/data-model/chip/matter-devices.xml` Do not override! """ + from __future__ import annotations import typing diff --git a/matter_server/common/errors.py b/matter_server/common/errors.py index 5b0993ec..075217dd 100644 --- a/matter_server/common/errors.py +++ b/matter_server/common/errors.py @@ -1,4 +1,5 @@ """Matter Exceptions.""" + from __future__ import annotations from typing import Type diff --git a/matter_server/common/helpers/api.py b/matter_server/common/helpers/api.py index c13bf8fa..20b99c1b 100644 --- a/matter_server/common/helpers/api.py +++ b/matter_server/common/helpers/api.py @@ -1,4 +1,5 @@ """Several helpers for the WebSockets API.""" + from __future__ import annotations from dataclasses import MISSING, dataclass diff --git a/matter_server/server/helpers/custom_web_runner.py b/matter_server/server/helpers/custom_web_runner.py index 20f954e8..16f702bc 100644 --- a/matter_server/server/helpers/custom_web_runner.py +++ b/matter_server/server/helpers/custom_web_runner.py @@ -1,4 +1,5 @@ """Multiple host capable aiohttp Site.""" + from __future__ import annotations import asyncio diff --git a/matter_server/server/storage.py b/matter_server/server/storage.py index d65de94f..e57f518b 100644 --- a/matter_server/server/storage.py +++ b/matter_server/server/storage.py @@ -1,4 +1,5 @@ """Logic to handle storage of persistent data.""" + from __future__ import annotations import asyncio diff --git a/matter_server/server/vendor_info.py b/matter_server/server/vendor_info.py index d07e781f..a966039d 100644 --- a/matter_server/server/vendor_info.py +++ b/matter_server/server/vendor_info.py @@ -1,4 +1,5 @@ """Fetches vendor info from the CSA.""" + from __future__ import annotations import logging diff --git a/pyproject.toml b/pyproject.toml index 8e265c99..85a652cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,7 @@ test = [ "pytest-asyncio==0.23.5", "pytest-aiohttp==1.0.5", "pytest-cov==4.1.0", - "ruff==0.2.2", + "ruff==0.3.0", "safety==3.0.1", "tomli==2.0.1", ] diff --git a/scripts/beautify_diagnostics.py b/scripts/beautify_diagnostics.py index a0b2faee..4994a609 100644 --- a/scripts/beautify_diagnostics.py +++ b/scripts/beautify_diagnostics.py @@ -1,4 +1,5 @@ """Script to beautify diagnostics output.""" + import json import sys diff --git a/scripts/generate_devices.py b/scripts/generate_devices.py index 04e124b0..a49a29ee 100644 --- a/scripts/generate_devices.py +++ b/scripts/generate_devices.py @@ -1,4 +1,5 @@ """Generate device types from matter-devices.xml.""" + import pathlib import black