Skip to content

Commit

Permalink
Ruff formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
natekspencer committed Apr 4, 2024
1 parent 6930f29 commit 28e872a
Show file tree
Hide file tree
Showing 23 changed files with 24 additions and 2 deletions.
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
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

0 comments on commit 28e872a

Please sign in to comment.