Skip to content

Commit

Permalink
Bump black from 23.12.1 to 24.1.1 (#556)
Browse files Browse the repository at this point in the history
* Bump black from 23.12.1 to 24.1.1

Bumps [black](https://github.com/psf/black) from 23.12.1 to 24.1.1.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@23.12.1...24.1.1)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Lint

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joakim Sørensen <ludeeus@ludeeus.dev>
Co-authored-by: ludeeus <joasoe@gmail.com>
  • Loading branch information
3 people authored Feb 7, 2024
1 parent 58ac6b2 commit c835105
Show file tree
Hide file tree
Showing 31 changed files with 31 additions and 1 deletion.
1 change: 1 addition & 0 deletions hass_nabucasa/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Component to integrate the Home Assistant cloud."""

from __future__ import annotations

import asyncio
Expand Down
1 change: 1 addition & 0 deletions hass_nabucasa/account_link.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Helpers to help with account linking."""

from __future__ import annotations

import asyncio
Expand Down
1 change: 1 addition & 0 deletions hass_nabucasa/acme.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Handle ACME and local certificates."""

from __future__ import annotations

import asyncio
Expand Down
1 change: 1 addition & 0 deletions hass_nabucasa/auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Package to communicate with the authentication API."""

from __future__ import annotations

import asyncio
Expand Down
1 change: 1 addition & 0 deletions hass_nabucasa/client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Client interface for Home Assistant to cloud."""

from __future__ import annotations

from abc import ABC, abstractmethod
Expand Down
1 change: 1 addition & 0 deletions hass_nabucasa/cloud_api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Cloud APIs."""

from __future__ import annotations

from functools import wraps
Expand Down
1 change: 1 addition & 0 deletions hass_nabucasa/cloudhooks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Manage cloud cloudhooks."""

from __future__ import annotations

from typing import TYPE_CHECKING, Any
Expand Down
1 change: 1 addition & 0 deletions hass_nabucasa/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Constants for the hass-nabucasa."""

from __future__ import annotations

CONFIG_DIR = ".cloud"
Expand Down
1 change: 1 addition & 0 deletions hass_nabucasa/google_report_state.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module to handle Google Report State."""

from __future__ import annotations

import asyncio
Expand Down
1 change: 1 addition & 0 deletions hass_nabucasa/iot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module to handle messages from Home Assistant cloud."""

from __future__ import annotations

import asyncio
Expand Down
1 change: 1 addition & 0 deletions hass_nabucasa/iot_base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Base class to keep a websocket connection open to a server."""

from __future__ import annotations

import asyncio
Expand Down
1 change: 1 addition & 0 deletions hass_nabucasa/remote.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Manage remote UI connections."""

from __future__ import annotations

import asyncio
Expand Down
1 change: 1 addition & 0 deletions hass_nabucasa/thingtalk.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""ThingTalk helpers."""

from __future__ import annotations

from typing import TYPE_CHECKING, Any
Expand Down
1 change: 1 addition & 0 deletions hass_nabucasa/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Helper methods to handle the time in Home Assistant."""

from __future__ import annotations

import asyncio
Expand Down
1 change: 1 addition & 0 deletions hass_nabucasa/voice.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Voice handler with Azure."""

from __future__ import annotations

from datetime import datetime
Expand Down
2 changes: 1 addition & 1 deletion requirements_tests.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
black==23.12.1
black==24.1.1
flake8==7.0.0
mypy==1.8.0
pylint==3.0.3
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 @@
"""Test the helper method for writing tests."""

from __future__ import annotations

import asyncio
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 @@
"""Set up some common test helper things."""

import asyncio
import logging
from unittest.mock import patch, MagicMock, PropertyMock, AsyncMock
Expand Down
1 change: 1 addition & 0 deletions tests/test_account_link.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test Account Linking tools."""

import asyncio
from unittest.mock import AsyncMock, Mock

Expand Down
1 change: 1 addition & 0 deletions tests/test_auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the tools to communicate with the cloud."""

import asyncio
from unittest.mock import MagicMock, patch

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

from unittest.mock import patch, AsyncMock

from hass_nabucasa import cloud_api
Expand Down
1 change: 1 addition & 0 deletions tests/test_cloudhooks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test cloud cloudhooks."""

from unittest.mock import AsyncMock, Mock

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_google_report_state.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for Google Report State."""

import asyncio
from unittest.mock import AsyncMock, Mock, patch

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 cloud component."""

import asyncio
import json
from unittest.mock import AsyncMock, patch, MagicMock, Mock, PropertyMock
Expand Down
1 change: 1 addition & 0 deletions tests/test_iot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the cloud.iot module."""

import asyncio
from unittest.mock import AsyncMock, MagicMock, Mock, call, patch

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

from unittest.mock import AsyncMock, MagicMock, Mock

from aiohttp import WSMsgType, client_exceptions, WSMessage
Expand Down
1 change: 1 addition & 0 deletions tests/test_remote.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test remote sni handler."""

import asyncio
from datetime import timedelta
from unittest.mock import patch
Expand Down
1 change: 1 addition & 0 deletions tests/test_thingtalk.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for ThingTalk."""

import pytest

import aiohttp
Expand Down
1 change: 1 addition & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for hass_nabucaa utils."""

import pytest

from hass_nabucasa import utils
Expand Down
1 change: 1 addition & 0 deletions tests/test_voice.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test for voice functions."""

from datetime import timedelta

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/utils/aiohttp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Aiohttp test utils."""

from contextlib import contextmanager
import json as _json
import re
Expand Down

0 comments on commit c835105

Please sign in to comment.