Add empty line after module docstring (2) [other] (#112738)

This commit is contained in:
Marc Mueller 2024-03-08 19:16:38 +01:00 committed by GitHub
parent 32f3f46542
commit a6b842f818
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
75 changed files with 76 additions and 0 deletions

View File

@ -1,4 +1,5 @@
"""Signal handling related helpers."""
import asyncio
import logging
import signal

View File

@ -1,4 +1,5 @@
"""Script to manage users for the Home Assistant auth provider."""
import argparse
import asyncio
import logging

View File

@ -1,4 +1,5 @@
"""Script to ensure a configuration file exists."""
import argparse
import asyncio
import os

View File

@ -1,4 +1,5 @@
"""Script to install/uninstall HA into OS X."""
import os
import time

View File

@ -1,4 +1,5 @@
"""Helper to create SSL contexts."""
import contextlib
from enum import StrEnum
from functools import cache

View File

@ -1,4 +1,5 @@
"""Threading util helpers."""
import ctypes
import inspect
import logging

View File

@ -1,4 +1,5 @@
"""Package metadata validation."""
import tomllib
from homeassistant.const import REQUIRED_PYTHON_VER, __version__

View File

@ -1,5 +1,6 @@
#!/usr/bin/env python3
"""Inspect all component SCHEMAS."""
import importlib
import os
import pkgutil

View File

@ -1,4 +1,5 @@
"""Helper script to update language list from the frontend source."""
import json
from pathlib import Path
import sys

View File

@ -3,6 +3,7 @@
This is NOT a full CI/linting replacement, only a quick check during development.
"""
import asyncio
from collections import namedtuple
from contextlib import suppress

View File

@ -1,4 +1,5 @@
"""Validate manifests."""
import argparse
from pathlib import Path
import subprocess

View File

@ -1,4 +1,5 @@
"""Gather info for scaffolding."""
import json
from homeassistant.util import slugify

View File

@ -1,4 +1,5 @@
"""Config flow for NEW_NAME."""
import my_pypi_dependency
from homeassistant.core import HomeAssistant

View File

@ -1,4 +1,5 @@
"""Test the NEW_NAME integration."""
import pytest
from homeassistant.components.NEW_DOMAIN.const import DOMAIN

View File

@ -1,4 +1,5 @@
"""Config flow for NEW_NAME."""
import logging
from homeassistant.helpers import config_entry_oauth2_flow

View File

@ -1,4 +1,5 @@
"""The tests for NEW_NAME device actions."""
import pytest
from pytest_unordered import unordered

View File

@ -1,4 +1,5 @@
"""The tests for NEW_NAME device triggers."""
import pytest
from pytest_unordered import unordered

View File

@ -1,4 +1,5 @@
"""Test reproduce state for NEW_NAME."""
import pytest
from homeassistant.core import HomeAssistant, State

View File

@ -1,4 +1,5 @@
"""Validate manifests."""
import argparse
import importlib
from pathlib import Path

View File

@ -1,4 +1,5 @@
"""Find translation keys that are in Lokalise but no longer defined in source."""
import argparse
from .const import CORE_PROJECT_ID, FRONTEND_DIR, FRONTEND_PROJECT_ID, INTEGRATIONS_DIR

View File

@ -1,4 +1,5 @@
"""Translation constants."""
import pathlib
CORE_PROJECT_ID = "130246255a974bd3b5e8a1.51616605"

View File

@ -1,4 +1,5 @@
"""Compile the current translation strings files for testing."""
import argparse
import json
from pathlib import Path

View File

@ -1,4 +1,5 @@
"""Errors for translations."""
import json

View File

@ -1,4 +1,5 @@
"""Write updated translations to the frontend."""
import argparse
import json

View File

@ -1,4 +1,5 @@
"""Migrate things."""
import json
import pathlib
from pprint import pprint

View File

@ -1,5 +1,6 @@
#!/usr/bin/env python3
"""Merge all translation sources into a single JSON file."""
import json
import os
import pathlib

View File

@ -1,4 +1,5 @@
"""Translation utils."""
import argparse
import json
import os

View File

@ -1,5 +1,6 @@
#!/usr/bin/env python3
"""Helper script to bump the current version."""
import argparse
import re
import subprocess

View File

@ -1,4 +1,5 @@
"""Test the HMAC-based One Time Password (MFA) auth module."""
import asyncio
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Test the Time-based One Time Password (MFA) auth module."""
import asyncio
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Tests for entity permissions."""
import pytest
import voluptuous as vol

View File

@ -1,4 +1,5 @@
"""Test the Home Assistant local auth provider."""
import asyncio
from unittest.mock import Mock, patch

View File

@ -1,4 +1,5 @@
"""Tests for the legacy_api_password auth provider."""
import pytest
from homeassistant import auth, data_entry_flow

View File

@ -1,4 +1,5 @@
"""Tests for the auth store."""
import asyncio
from datetime import timedelta
from typing import Any

View File

@ -1,4 +1,5 @@
"""Tests for hassfest dependency finder."""
import ast
import pytest
@ -59,6 +60,7 @@ def test_renamed_absolute(mock_collector) -> None:
mock_collector.visit(
ast.parse(
"""
import homeassistant.components.renamed_absolute as hue
"""
)

View File

@ -1,4 +1,5 @@
"""Tests for hassfest version."""
import pytest
import voluptuous as vol

View File

@ -1,4 +1,5 @@
"""Test check_config helper."""
import logging
from unittest.mock import Mock, patch

View File

@ -1,4 +1,5 @@
"""Tests for debounce."""
import asyncio
from datetime import timedelta
import logging

View File

@ -1,4 +1,5 @@
"""Test the entity helper."""
import asyncio
from collections.abc import Iterable
import dataclasses

View File

@ -1,4 +1,5 @@
"""Tests for the EntityPlatform helper."""
import asyncio
from collections.abc import Iterable
from datetime import timedelta

View File

@ -1,4 +1,5 @@
"""Tests for the floor registry."""
import re
from typing import Any

View File

@ -1,4 +1,5 @@
"""Test Home Assistant remote methods and classes."""
import datetime
from functools import partial
import json

View File

@ -1,4 +1,5 @@
"""Tests for the Label Registry."""
import re
from typing import Any

View File

@ -1,4 +1,5 @@
"""Tests for the normalized name base registry helper."""
import pytest
from homeassistant.helpers.normalized_name_base_registry import (

View File

@ -1,4 +1,5 @@
"""Tests for ratelimit."""
import asyncio
from datetime import timedelta

View File

@ -1,4 +1,5 @@
"""Tests for the reload helper."""
import logging
from unittest.mock import AsyncMock, Mock, patch

View File

@ -1,4 +1,5 @@
"""The tests for the Script component."""
import asyncio
from contextlib import contextmanager
from datetime import timedelta

View File

@ -1,4 +1,5 @@
"""Test script variables."""
import pytest
from homeassistant.core import HomeAssistant

View File

@ -1,4 +1,5 @@
"""Test service helpers."""
import asyncio
from collections.abc import Iterable
from copy import deepcopy

View File

@ -1,4 +1,5 @@
"""Test significant change helper."""
import pytest
from homeassistant.components.sensor import SensorDeviceClass

View File

@ -1,4 +1,5 @@
"""Test starting HA helpers."""
import pytest
from homeassistant.const import EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STARTED

View File

@ -1,4 +1,5 @@
"""Test state helpers."""
import asyncio
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Tests for the storage helper."""
import asyncio
from datetime import timedelta
import json

View File

@ -1,4 +1,5 @@
"""Tests for the system info helper."""
import json
import os
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Tests Home Assistant temperature helpers."""
import pytest
from homeassistant.const import (

View File

@ -1,4 +1,5 @@
"""Test the translation helper."""
import asyncio
from os import path
import pathlib

View File

@ -1,4 +1,5 @@
"""Test the auth script to manage local users."""
import logging
from typing import Any
from unittest.mock import Mock, patch

View File

@ -1,4 +1,5 @@
"""Test check_config script."""
import logging
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Test the bootstrapping."""
import asyncio
from collections.abc import Generator, Iterable
import glob

View File

@ -1,4 +1,5 @@
"""Test to check for circular imports in core components."""
import asyncio
import sys

View File

@ -1,4 +1,5 @@
"""Test the flow classes."""
import asyncio
import dataclasses
import logging

View File

@ -1,4 +1,5 @@
"""Test to verify that we can load components."""
import asyncio
import os
import sys

View File

@ -1,4 +1,5 @@
"""Test requirements module."""
import asyncio
import logging
import os

View File

@ -1,4 +1,5 @@
"""Test the runner."""
import asyncio
from collections.abc import Iterator
import threading

View File

@ -1,4 +1,5 @@
"""Aiohttp test utils."""
import asyncio
from contextlib import contextmanager
from http import HTTPStatus

View File

@ -1,4 +1,5 @@
"""Tests for our aiohttp mocker."""
import pytest
from .aiohttp import AiohttpClientMocker

View File

@ -2,6 +2,7 @@
Call init before using it in your tests to ensure clean test data.
"""
import logging
from homeassistant.components.button import ButtonEntity

View File

@ -1,4 +1,5 @@
"""Tests for async util methods from Python source."""
import asyncio
import sys
import time

View File

@ -1,4 +1,5 @@
"""Test Home Assistant color util methods."""
import math
import pytest

View File

@ -1,4 +1,5 @@
"""Test Home Assistant file utility functions."""
import os
from pathlib import Path
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Test Home Assistant logging util methods."""
import asyncio
from functools import partial
import logging

View File

@ -1,4 +1,5 @@
"""Test Home Assistant package util methods."""
import asyncio
from importlib.metadata import metadata
import logging

View File

@ -1,4 +1,5 @@
"""Test read only dictionary."""
import json
import pytest

View File

@ -1,4 +1,5 @@
"""Test Home Assistant timeout handler."""
import asyncio
from contextlib import suppress
import time

View File

@ -1,4 +1,5 @@
"""Test inputs."""
import pytest
from homeassistant.util.yaml import (