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

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

Merged
merged 1 commit into from
Mar 8, 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
Add empty line after module docstring (2) [other]
  • Loading branch information
cdce8p committed Mar 8, 2024
commit 5bfbb6eb6d822270df48e7beade4e94273fb4680
1 change: 1 addition & 0 deletions homeassistant/helpers/signal.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Signal handling related helpers."""

import asyncio
import logging
import signal
Expand Down
1 change: 1 addition & 0 deletions homeassistant/scripts/auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Script to manage users for the Home Assistant auth provider."""

import argparse
import asyncio
import logging
Expand Down
1 change: 1 addition & 0 deletions homeassistant/scripts/ensure_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Script to ensure a configuration file exists."""

import argparse
import asyncio
import os
Expand Down
1 change: 1 addition & 0 deletions homeassistant/scripts/macos/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Script to install/uninstall HA into OS X."""

import os
import time

Expand Down
1 change: 1 addition & 0 deletions homeassistant/util/ssl.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Helper to create SSL contexts."""

import contextlib
from enum import StrEnum
from functools import cache
Expand Down
1 change: 1 addition & 0 deletions homeassistant/util/thread.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Threading util helpers."""

import ctypes
import inspect
import logging
Expand Down
1 change: 1 addition & 0 deletions script/hassfest/metadata.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Package metadata validation."""

import tomllib

from homeassistant.const import REQUIRED_PYTHON_VER, __version__
Expand Down
1 change: 1 addition & 0 deletions script/inspect_schemas.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
"""Inspect all component SCHEMAS."""

import importlib
import os
import pkgutil
Expand Down
1 change: 1 addition & 0 deletions script/languages.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Helper script to update language list from the frontend source."""

import json
from pathlib import Path
import sys
Expand Down
1 change: 1 addition & 0 deletions script/lint_and_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions script/scaffold/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Validate manifests."""

import argparse
from pathlib import Path
import subprocess
Expand Down
1 change: 1 addition & 0 deletions script/scaffold/gather_info.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Gather info for scaffolding."""

import json

from homeassistant.util import slugify
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Config flow for NEW_NAME."""

import my_pypi_dependency

from homeassistant.core import HomeAssistant
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the NEW_NAME integration."""

import pytest

from homeassistant.components.NEW_DOMAIN.const import DOMAIN
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Config flow for NEW_NAME."""

import logging

from homeassistant.helpers import config_entry_oauth2_flow
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The tests for NEW_NAME device actions."""

import pytest
from pytest_unordered import unordered

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The tests for NEW_NAME device triggers."""

import pytest
from pytest_unordered import unordered

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test reproduce state for NEW_NAME."""

import pytest

from homeassistant.core import HomeAssistant, State
Expand Down
1 change: 1 addition & 0 deletions script/translations/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Validate manifests."""

import argparse
import importlib
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions script/translations/clean.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions script/translations/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Translation constants."""

import pathlib

CORE_PROJECT_ID = "130246255a974bd3b5e8a1.51616605"
Expand Down
1 change: 1 addition & 0 deletions script/translations/develop.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Compile the current translation strings files for testing."""

import argparse
import json
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions script/translations/error.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Errors for translations."""

import json


Expand Down
1 change: 1 addition & 0 deletions script/translations/frontend.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Write updated translations to the frontend."""

import argparse
import json

Expand Down
1 change: 1 addition & 0 deletions script/translations/migrate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Migrate things."""

import json
import pathlib
from pprint import pprint
Expand Down
1 change: 1 addition & 0 deletions script/translations/upload.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
"""Merge all translation sources into a single JSON file."""

import json
import os
import pathlib
Expand Down
1 change: 1 addition & 0 deletions script/translations/util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Translation utils."""

import argparse
import json
import os
Expand Down
1 change: 1 addition & 0 deletions script/version_bump.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
"""Helper script to bump the current version."""

import argparse
import re
import subprocess
Expand Down
1 change: 1 addition & 0 deletions tests/auth/mfa_modules/test_notify.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the HMAC-based One Time Password (MFA) auth module."""

import asyncio
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/auth/mfa_modules/test_totp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Time-based One Time Password (MFA) auth module."""

import asyncio
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/auth/permissions/test_entities.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for entity permissions."""

import pytest
import voluptuous as vol

Expand Down
1 change: 1 addition & 0 deletions tests/auth/providers/test_homeassistant.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Home Assistant local auth provider."""

import asyncio
from unittest.mock import Mock, patch

Expand Down
1 change: 1 addition & 0 deletions tests/auth/providers/test_legacy_api_password.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the legacy_api_password auth provider."""

import pytest

from homeassistant import auth, data_entry_flow
Expand Down
1 change: 1 addition & 0 deletions tests/auth/test_auth_store.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the auth store."""

import asyncio
from datetime import timedelta
from typing import Any
Expand Down
2 changes: 2 additions & 0 deletions tests/hassfest/test_dependencies.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for hassfest dependency finder."""

import ast

import pytest
Expand Down Expand Up @@ -59,6 +60,7 @@ def test_renamed_absolute(mock_collector) -> None:
mock_collector.visit(
ast.parse(
"""

import homeassistant.components.renamed_absolute as hue
"""
)
Expand Down
1 change: 1 addition & 0 deletions tests/hassfest/test_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for hassfest version."""

import pytest
import voluptuous as vol

Expand Down
1 change: 1 addition & 0 deletions tests/helpers/test_check_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test check_config helper."""

import logging
from unittest.mock import Mock, patch

Expand Down
1 change: 1 addition & 0 deletions tests/helpers/test_debounce.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for debounce."""

import asyncio
from datetime import timedelta
import logging
Expand Down
1 change: 1 addition & 0 deletions tests/helpers/test_entity.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the entity helper."""

import asyncio
from collections.abc import Iterable
import dataclasses
Expand Down
1 change: 1 addition & 0 deletions tests/helpers/test_entity_platform.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the EntityPlatform helper."""

import asyncio
from collections.abc import Iterable
from datetime import timedelta
Expand Down
1 change: 1 addition & 0 deletions tests/helpers/test_floor_registry.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the floor registry."""

import re
from typing import Any

Expand Down
1 change: 1 addition & 0 deletions tests/helpers/test_json.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test Home Assistant remote methods and classes."""

import datetime
from functools import partial
import json
Expand Down
1 change: 1 addition & 0 deletions tests/helpers/test_label_registry.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the Label Registry."""

import re
from typing import Any

Expand Down
1 change: 1 addition & 0 deletions tests/helpers/test_normalized_name_base_registry.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the normalized name base registry helper."""

import pytest

from homeassistant.helpers.normalized_name_base_registry import (
Expand Down
1 change: 1 addition & 0 deletions tests/helpers/test_ratelimit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for ratelimit."""

import asyncio
from datetime import timedelta

Expand Down
1 change: 1 addition & 0 deletions tests/helpers/test_reload.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the reload helper."""

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

Expand Down
1 change: 1 addition & 0 deletions tests/helpers/test_script.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The tests for the Script component."""

import asyncio
from contextlib import contextmanager
from datetime import timedelta
Expand Down
1 change: 1 addition & 0 deletions tests/helpers/test_script_variables.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test script variables."""

import pytest

from homeassistant.core import HomeAssistant
Expand Down
1 change: 1 addition & 0 deletions tests/helpers/test_service.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test service helpers."""

import asyncio
from collections.abc import Iterable
from copy import deepcopy
Expand Down
1 change: 1 addition & 0 deletions tests/helpers/test_significant_change.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test significant change helper."""

import pytest

from homeassistant.components.sensor import SensorDeviceClass
Expand Down
1 change: 1 addition & 0 deletions tests/helpers/test_start.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test starting HA helpers."""

import pytest

from homeassistant.const import EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STARTED
Expand Down
1 change: 1 addition & 0 deletions tests/helpers/test_state.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test state helpers."""

import asyncio
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/helpers/test_storage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the storage helper."""

import asyncio
from datetime import timedelta
import json
Expand Down
1 change: 1 addition & 0 deletions tests/helpers/test_system_info.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the system info helper."""

import json
import os
from unittest.mock import patch
Expand Down
1 change: 1 addition & 0 deletions tests/helpers/test_temperature.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests Home Assistant temperature helpers."""

import pytest

from homeassistant.const import (
Expand Down
1 change: 1 addition & 0 deletions tests/helpers/test_translation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the translation helper."""

import asyncio
from os import path
import pathlib
Expand Down
1 change: 1 addition & 0 deletions tests/scripts/test_auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the auth script to manage local users."""

import logging
from typing import Any
from unittest.mock import Mock, patch
Expand Down
1 change: 1 addition & 0 deletions tests/scripts/test_check_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test check_config script."""

import logging
from unittest.mock import patch

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

import asyncio
from collections.abc import Generator, Iterable
import glob
Expand Down
1 change: 1 addition & 0 deletions tests/test_circular_imports.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test to check for circular imports in core components."""

import asyncio
import sys

Expand Down
1 change: 1 addition & 0 deletions tests/test_data_entry_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the flow classes."""

import asyncio
import dataclasses
import logging
Expand Down
1 change: 1 addition & 0 deletions tests/test_loader.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test to verify that we can load components."""

import asyncio
import os
import sys
Expand Down
1 change: 1 addition & 0 deletions tests/test_requirements.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test requirements module."""

import asyncio
import logging
import os
Expand Down
1 change: 1 addition & 0 deletions tests/test_runner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the runner."""

import asyncio
from collections.abc import Iterator
import threading
Expand Down
Loading
Loading