diff --git a/poetry.lock b/poetry.lock index ab83c72..76b0d5c 100644 --- a/poetry.lock +++ b/poetry.lock @@ -805,28 +805,28 @@ six = ">=1.5" [[package]] name = "ruff" -version = "0.2.1" +version = "0.3.5" description = "An extremely fast Python linter and code formatter, written in Rust." optional = false python-versions = ">=3.7" files = [ - {file = "ruff-0.2.1-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:dd81b911d28925e7e8b323e8d06951554655021df8dd4ac3045d7212ac4ba080"}, - {file = "ruff-0.2.1-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:dc586724a95b7d980aa17f671e173df00f0a2eef23f8babbeee663229a938fec"}, - {file = "ruff-0.2.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c92db7101ef5bfc18e96777ed7bc7c822d545fa5977e90a585accac43d22f18a"}, - {file = "ruff-0.2.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:13471684694d41ae0f1e8e3a7497e14cd57ccb7dd72ae08d56a159d6c9c3e30e"}, - {file = "ruff-0.2.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a11567e20ea39d1f51aebd778685582d4c56ccb082c1161ffc10f79bebe6df35"}, - {file = "ruff-0.2.1-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:00a818e2db63659570403e44383ab03c529c2b9678ba4ba6c105af7854008105"}, - {file = "ruff-0.2.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:be60592f9d218b52f03384d1325efa9d3b41e4c4d55ea022cd548547cc42cd2b"}, - {file = "ruff-0.2.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:fbd2288890b88e8aab4499e55148805b58ec711053588cc2f0196a44f6e3d855"}, - {file = "ruff-0.2.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f3ef052283da7dec1987bba8d8733051c2325654641dfe5877a4022108098683"}, - {file = "ruff-0.2.1-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:7022d66366d6fded4ba3889f73cd791c2d5621b2ccf34befc752cb0df70f5fad"}, - {file = "ruff-0.2.1-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:0a725823cb2a3f08ee743a534cb6935727d9e47409e4ad72c10a3faf042ad5ba"}, - {file = "ruff-0.2.1-py3-none-musllinux_1_2_i686.whl", hash = "sha256:0034d5b6323e6e8fe91b2a1e55b02d92d0b582d2953a2b37a67a2d7dedbb7acc"}, - {file = "ruff-0.2.1-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:e5cb5526d69bb9143c2e4d2a115d08ffca3d8e0fddc84925a7b54931c96f5c02"}, - {file = "ruff-0.2.1-py3-none-win32.whl", hash = "sha256:6b95ac9ce49b4fb390634d46d6ece32ace3acdd52814671ccaf20b7f60adb232"}, - {file = "ruff-0.2.1-py3-none-win_amd64.whl", hash = "sha256:e3affdcbc2afb6f5bd0eb3130139ceedc5e3f28d206fe49f63073cb9e65988e0"}, - {file = "ruff-0.2.1-py3-none-win_arm64.whl", hash = "sha256:efababa8e12330aa94a53e90a81eb6e2d55f348bc2e71adbf17d9cad23c03ee6"}, - {file = "ruff-0.2.1.tar.gz", hash = "sha256:3b42b5d8677cd0c72b99fcaf068ffc62abb5a19e71b4a3b9cfa50658a0af02f1"}, + {file = "ruff-0.3.5-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:aef5bd3b89e657007e1be6b16553c8813b221ff6d92c7526b7e0227450981eac"}, + {file = "ruff-0.3.5-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:89b1e92b3bd9fca249153a97d23f29bed3992cff414b222fcd361d763fc53f12"}, + {file = "ruff-0.3.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5e55771559c89272c3ebab23326dc23e7f813e492052391fe7950c1a5a139d89"}, + {file = "ruff-0.3.5-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:dabc62195bf54b8a7876add6e789caae0268f34582333cda340497c886111c39"}, + {file = "ruff-0.3.5-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3a05f3793ba25f194f395578579c546ca5d83e0195f992edc32e5907d142bfa3"}, + {file = "ruff-0.3.5-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:dfd3504e881082959b4160ab02f7a205f0fadc0a9619cc481982b6837b2fd4c0"}, + {file = "ruff-0.3.5-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:87258e0d4b04046cf1d6cc1c56fadbf7a880cc3de1f7294938e923234cf9e498"}, + {file = "ruff-0.3.5-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:712e71283fc7d9f95047ed5f793bc019b0b0a29849b14664a60fd66c23b96da1"}, + {file = "ruff-0.3.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a532a90b4a18d3f722c124c513ffb5e5eaff0cc4f6d3aa4bda38e691b8600c9f"}, + {file = "ruff-0.3.5-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:122de171a147c76ada00f76df533b54676f6e321e61bd8656ae54be326c10296"}, + {file = "ruff-0.3.5-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:d80a6b18a6c3b6ed25b71b05eba183f37d9bc8b16ace9e3d700997f00b74660b"}, + {file = "ruff-0.3.5-py3-none-musllinux_1_2_i686.whl", hash = "sha256:a7b6e63194c68bca8e71f81de30cfa6f58ff70393cf45aab4c20f158227d5936"}, + {file = "ruff-0.3.5-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:a759d33a20c72f2dfa54dae6e85e1225b8e302e8ac655773aff22e542a300985"}, + {file = "ruff-0.3.5-py3-none-win32.whl", hash = "sha256:9d8605aa990045517c911726d21293ef4baa64f87265896e491a05461cae078d"}, + {file = "ruff-0.3.5-py3-none-win_amd64.whl", hash = "sha256:dc56bb16a63c1303bd47563c60482a1512721053d93231cf7e9e1c6954395a0e"}, + {file = "ruff-0.3.5-py3-none-win_arm64.whl", hash = "sha256:faeeae9905446b975dcf6d4499dc93439b131f1443ee264055c5716dd947af55"}, + {file = "ruff-0.3.5.tar.gz", hash = "sha256:a067daaeb1dc2baf9b82a32dae67d154d95212080c80435eb052d95da647763d"}, ] [[package]] @@ -999,4 +999,4 @@ multidict = ">=4.0" [metadata] lock-version = "2.0" python-versions = "^3.8.1" -content-hash = "f5b96e1faa4dfd8aa793eb3903d5c66dd2399e95ec8e0709e94675818dad1f5d" +content-hash = "4fbd1dff4ddf56aaa5e947779e1eba6a616216da27c06163789e39edd6f50283" diff --git a/pylitterbot/__init__.py b/pylitterbot/__init__.py index 030ea8e..e66ac87 100644 --- a/pylitterbot/__init__.py +++ b/pylitterbot/__init__.py @@ -1,4 +1,5 @@ """pylitterbot module.""" + __version__ = "0.0.0" from .account import Account diff --git a/pylitterbot/account.py b/pylitterbot/account.py index ed0e1ef..b2470da 100644 --- a/pylitterbot/account.py +++ b/pylitterbot/account.py @@ -1,4 +1,5 @@ """Account access and data handling for Litter-Robot endpoint.""" + from __future__ import annotations import asyncio diff --git a/pylitterbot/activity.py b/pylitterbot/activity.py index 461d72a..e889049 100644 --- a/pylitterbot/activity.py +++ b/pylitterbot/activity.py @@ -1,4 +1,5 @@ """pylitterbot activity and insight classes.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/pylitterbot/enums.py b/pylitterbot/enums.py index 009386f..e60f2d2 100644 --- a/pylitterbot/enums.py +++ b/pylitterbot/enums.py @@ -1,4 +1,5 @@ """pylitterbot enums.""" + from __future__ import annotations import logging diff --git a/pylitterbot/event.py b/pylitterbot/event.py index 734ed9f..d0f6e5e 100644 --- a/pylitterbot/event.py +++ b/pylitterbot/event.py @@ -1,4 +1,5 @@ """Event handling class for pylitterbot.""" + from __future__ import annotations from collections.abc import Callable diff --git a/pylitterbot/robot/__init__.py b/pylitterbot/robot/__init__.py index af249cb..236948a 100644 --- a/pylitterbot/robot/__init__.py +++ b/pylitterbot/robot/__init__.py @@ -1,4 +1,5 @@ """Robot base class.""" + from __future__ import annotations import logging diff --git a/pylitterbot/robot/feederrobot.py b/pylitterbot/robot/feederrobot.py index 35efdf1..51030e6 100644 --- a/pylitterbot/robot/feederrobot.py +++ b/pylitterbot/robot/feederrobot.py @@ -1,4 +1,5 @@ """Feeder-Robot.""" + from __future__ import annotations import logging diff --git a/pylitterbot/robot/litterrobot.py b/pylitterbot/robot/litterrobot.py index c15e194..631b5e5 100644 --- a/pylitterbot/robot/litterrobot.py +++ b/pylitterbot/robot/litterrobot.py @@ -1,4 +1,5 @@ """Litter-Robot base class.""" + from __future__ import annotations import logging diff --git a/pylitterbot/robot/litterrobot3.py b/pylitterbot/robot/litterrobot3.py index 9967a1f..032d5c2 100644 --- a/pylitterbot/robot/litterrobot3.py +++ b/pylitterbot/robot/litterrobot3.py @@ -1,4 +1,5 @@ """Litter-Robot 3.""" + from __future__ import annotations import logging diff --git a/pylitterbot/robot/litterrobot4.py b/pylitterbot/robot/litterrobot4.py index e34959d..c8fb78a 100644 --- a/pylitterbot/robot/litterrobot4.py +++ b/pylitterbot/robot/litterrobot4.py @@ -1,4 +1,5 @@ """Litter-Robot 4.""" + from __future__ import annotations import logging diff --git a/pylitterbot/robot/models.py b/pylitterbot/robot/models.py index 19deec6..6d09b36 100644 --- a/pylitterbot/robot/models.py +++ b/pylitterbot/robot/models.py @@ -1,4 +1,5 @@ """pylitterbot robot models.""" + FEEDER_ROBOT_MODEL = """ { id diff --git a/pylitterbot/session.py b/pylitterbot/session.py index cee8dc5..d224274 100644 --- a/pylitterbot/session.py +++ b/pylitterbot/session.py @@ -1,4 +1,5 @@ """Session handling for litter-robot endpoint.""" + from __future__ import annotations import logging diff --git a/pylitterbot/utils.py b/pylitterbot/utils.py index 9258b2f..f4f1ce3 100644 --- a/pylitterbot/utils.py +++ b/pylitterbot/utils.py @@ -1,4 +1,5 @@ """Utilities module.""" + from __future__ import annotations import json @@ -109,8 +110,7 @@ def redact(data: Mapping) -> dict: # type: ignore[overload-overlap] @overload -def redact(data: _T) -> _T: - ... +def redact(data: _T) -> _T: ... def redact(data: _T) -> _T: diff --git a/pylitterbot/ws_monitor.py b/pylitterbot/ws_monitor.py index 8a5d0b1..8fb33be 100644 --- a/pylitterbot/ws_monitor.py +++ b/pylitterbot/ws_monitor.py @@ -1,4 +1,5 @@ """Websocket monitor.""" + from __future__ import annotations import asyncio diff --git a/pyproject.toml b/pyproject.toml index 0a86506..1a54e66 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ aioresponses = "^0.7.4" mypy = "^1.3" tox = ">=3.28,<5.0" pytest-timeout = "^2.1.0" -ruff = "^0.2.1" +ruff = "^0.3" pytest-freezer = "^0.4.8" [tool.poetry-dynamic-versioning] diff --git a/tests/common.py b/tests/common.py index ae2c59e..2212b3d 100644 --- a/tests/common.py +++ b/tests/common.py @@ -1,4 +1,5 @@ """Common test module.""" + from __future__ import annotations from collections.abc import Callable diff --git a/tests/conftest.py b/tests/conftest.py index 6a5720e..66ea7f6 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,5 @@ """Conftest.""" + from __future__ import annotations import re diff --git a/tests/test_account.py b/tests/test_account.py index 5cdfaf1..26875df 100644 --- a/tests/test_account.py +++ b/tests/test_account.py @@ -1,4 +1,5 @@ """Test account module.""" + from __future__ import annotations import logging diff --git a/tests/test_enums.py b/tests/test_enums.py index e46d318..de0cc09 100644 --- a/tests/test_enums.py +++ b/tests/test_enums.py @@ -1,4 +1,5 @@ """Test enums module.""" + from pylitterbot.enums import LitterBoxStatus diff --git a/tests/test_feederrobot.py b/tests/test_feederrobot.py index aebd7cd..9421b4e 100644 --- a/tests/test_feederrobot.py +++ b/tests/test_feederrobot.py @@ -1,4 +1,5 @@ """Test feederrobot module.""" + # pylint: disable=protected-access import pytest from aioresponses import aioresponses diff --git a/tests/test_init.py b/tests/test_init.py index 2838837..8f9d493 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -1,4 +1,5 @@ """Tests module.""" + from pylitterbot import __version__ diff --git a/tests/test_litterrobot4.py b/tests/test_litterrobot4.py index 3d1e581..454efea 100644 --- a/tests/test_litterrobot4.py +++ b/tests/test_litterrobot4.py @@ -1,4 +1,5 @@ """Test litterrobot4 module.""" + # pylint: disable=protected-access from __future__ import annotations diff --git a/tests/test_robot.py b/tests/test_robot.py index dead917..824c861 100644 --- a/tests/test_robot.py +++ b/tests/test_robot.py @@ -1,4 +1,5 @@ """Test robot module.""" + # pylint: disable=protected-access import asyncio import logging diff --git a/tests/test_session.py b/tests/test_session.py index e247901..d40f476 100644 --- a/tests/test_session.py +++ b/tests/test_session.py @@ -1,4 +1,5 @@ """Test session module.""" + # pylint: disable=protected-access from datetime import datetime, timedelta, timezone