Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump ruff from 0.2.1 to 0.3.5 #214

Merged
merged 3 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pylitterbot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""pylitterbot module."""

__version__ = "0.0.0"

from .account import Account
Expand Down
1 change: 1 addition & 0 deletions pylitterbot/account.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Account access and data handling for Litter-Robot endpoint."""

from __future__ import annotations

import asyncio
Expand Down
1 change: 1 addition & 0 deletions pylitterbot/activity.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""pylitterbot activity and insight classes."""

from __future__ import annotations

from dataclasses import dataclass
Expand Down
1 change: 1 addition & 0 deletions pylitterbot/enums.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""pylitterbot enums."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions pylitterbot/event.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Event handling class for pylitterbot."""

from __future__ import annotations

from collections.abc import Callable
Expand Down
1 change: 1 addition & 0 deletions pylitterbot/robot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Robot base class."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions pylitterbot/robot/feederrobot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Feeder-Robot."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions pylitterbot/robot/litterrobot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Litter-Robot base class."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions pylitterbot/robot/litterrobot3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Litter-Robot 3."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions pylitterbot/robot/litterrobot4.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Litter-Robot 4."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions pylitterbot/robot/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""pylitterbot robot models."""

FEEDER_ROBOT_MODEL = """
{
id
Expand Down
1 change: 1 addition & 0 deletions pylitterbot/session.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Session handling for litter-robot endpoint."""

from __future__ import annotations

import logging
Expand Down
4 changes: 2 additions & 2 deletions pylitterbot/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utilities module."""

from __future__ import annotations

import json
Expand Down Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions pylitterbot/ws_monitor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Websocket monitor."""

from __future__ import annotations

import asyncio
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions tests/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Common test module."""

from __future__ import annotations

from collections.abc import Callable
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Conftest."""

from __future__ import annotations

import re
Expand Down
1 change: 1 addition & 0 deletions tests/test_account.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test account module."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions tests/test_enums.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test enums module."""

from pylitterbot.enums import LitterBoxStatus


Expand Down
1 change: 1 addition & 0 deletions tests/test_feederrobot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test feederrobot module."""

# pylint: disable=protected-access
import pytest
from aioresponses import aioresponses
Expand Down
1 change: 1 addition & 0 deletions tests/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests module."""

from pylitterbot import __version__


Expand Down
1 change: 1 addition & 0 deletions tests/test_litterrobot4.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test litterrobot4 module."""

# pylint: disable=protected-access
from __future__ import annotations

Expand Down
1 change: 1 addition & 0 deletions tests/test_robot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test robot module."""

# pylint: disable=protected-access
import asyncio
import logging
Expand Down
1 change: 1 addition & 0 deletions tests/test_session.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test session module."""

# pylint: disable=protected-access
from datetime import datetime, timedelta, timezone

Expand Down