Skip to content

Commit

Permalink
Reformat with Black
Browse files Browse the repository at this point in the history
  • Loading branch information
watkins-matt committed Jan 29, 2024
1 parent 12e3e24 commit e1cc8b7
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions custom_components/google_keep_sync/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Integration for synchronization with Google Keep."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions custom_components/google_keep_sync/api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""API for synchronization with Google Keep."""

import functools
import logging

Expand Down
1 change: 1 addition & 0 deletions custom_components/google_keep_sync/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Config flow for Google Keep Sync integration."""

import logging
from collections.abc import Mapping
from typing import Any
Expand Down
9 changes: 6 additions & 3 deletions custom_components/google_keep_sync/todo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Platform for creating to do list entries based on Google Keep lists."""

import logging
from datetime import timedelta

Expand Down Expand Up @@ -129,9 +130,11 @@ def todo_items(self) -> list[TodoItem]:
TodoItem(
summary=item.text,
uid=item.id,
status=TodoItemStatus.COMPLETED
if item.checked
else TodoItemStatus.NEEDS_ACTION,
status=(
TodoItemStatus.COMPLETED
if item.checked
else TodoItemStatus.NEEDS_ACTION
),
)
for item in self._gkeep_list.items
]
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 @@
"""Configure pytest for Home Assistant custom component testing."""

import os
import sys

Expand Down
1 change: 1 addition & 0 deletions tests/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test config flow for Google Keep Sync."""

from unittest.mock import AsyncMock, MagicMock, patch

import pytest
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 @@
"""Test the Google Keep Sync setup entry."""

from unittest.mock import AsyncMock, MagicMock, patch

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_todo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Unit tests for the todo component."""

from unittest.mock import AsyncMock, MagicMock, patch

import pytest
Expand Down

0 comments on commit e1cc8b7

Please sign in to comment.