mirror of
https://github.com/hacs/integration.git
synced 2025-07-22 00:35:16 +00:00
Bump ruff from 0.5.7 to 0.6.1 (#3983)
* Bump ruff from 0.5.7 to 0.6.1 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.5.7 to 0.6.1. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.5.7...0.6.1) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-minor ... 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: ludeeus <joasoe@gmail.com>
This commit is contained in:
@ -54,6 +54,7 @@ ignore = [
|
||||
"ARG001",
|
||||
"ARG002",
|
||||
"ARG005",
|
||||
"ASYNC110",
|
||||
"BLE001",
|
||||
"C901",
|
||||
"COM812",
|
||||
|
@ -4,5 +4,5 @@ isort==5.13.2
|
||||
pre-commit==3.8.0
|
||||
pre-commit-hooks==4.6.0
|
||||
pyupgrade==3.17.0
|
||||
ruff==0.5.7
|
||||
ruff==0.6.1
|
||||
vulture==2.11
|
||||
|
@ -92,20 +92,20 @@ def set_request_context(request: pytest.FixtureRequest):
|
||||
REQUEST_CONTEXT.set(request)
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def connection():
|
||||
"""Mock fixture for connection."""
|
||||
return MagicMock()
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def hass_storage():
|
||||
"""Fixture to mock storage."""
|
||||
with mock_storage() as stored_data:
|
||||
yield stored_data
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
async def hass(time_freezer, event_loop, tmpdir, check_report_issue: None):
|
||||
"""Fixture to provide a test instance of Home Assistant."""
|
||||
|
||||
@ -166,54 +166,54 @@ async def hass(time_freezer, event_loop, tmpdir, check_report_issue: None):
|
||||
shutil.rmtree(hass.config.config_dir)
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def hacs(hass: HomeAssistant, setup_integration: None) -> HacsBase:
|
||||
"""Fixture to provide a HACS object."""
|
||||
return get_hacs(hass)
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def repository(hacs):
|
||||
"""Fixtrue for HACS repository object"""
|
||||
return dummy_repository_base(hacs)
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def repository_integration(hacs):
|
||||
"""Fixtrue for HACS integration repository object"""
|
||||
repository_obj = HacsIntegrationRepository(hacs, "test/test")
|
||||
return dummy_repository_base(hacs, repository_obj)
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def repository_theme(hacs):
|
||||
"""Fixtrue for HACS theme repository object"""
|
||||
repository_obj = HacsThemeRepository(hacs, "test/test")
|
||||
return dummy_repository_base(hacs, repository_obj)
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def repository_plugin(hacs):
|
||||
"""Fixtrue for HACS plugin repository object"""
|
||||
repository_obj = HacsPluginRepository(hacs, "test/test")
|
||||
return dummy_repository_base(hacs, repository_obj)
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def repository_python_script(hacs):
|
||||
"""Fixtrue for HACS python_script repository object"""
|
||||
repository_obj = HacsPythonScriptRepository(hacs, "test/test")
|
||||
return dummy_repository_base(hacs, repository_obj)
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def repository_template(hacs):
|
||||
"""Fixtrue for HACS template repository object"""
|
||||
repository_obj = HacsTemplateRepository(hacs, "test/test")
|
||||
return dummy_repository_base(hacs, repository_obj)
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def repository_appdaemon(hacs):
|
||||
"""Fixtrue for HACS appdaemon repository object"""
|
||||
repository_obj = HacsAppdaemonRepository(hacs, "test/test")
|
||||
@ -230,7 +230,7 @@ class SnapshotFixture(Snapshot):
|
||||
pass
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def snapshots(snapshot: Snapshot) -> SnapshotFixture:
|
||||
"""Fixture for a snapshot."""
|
||||
snapshot.snapshot_dir = "tests/snapshots"
|
||||
@ -345,7 +345,7 @@ async def ws_client(hass: HomeAssistant) -> WSClient:
|
||||
return WSClient(hass, hass.auth.async_create_access_token(refresh_token))
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def response_mocker() -> ResponseMocker:
|
||||
"""Mock fixture for responses."""
|
||||
mocker = ResponseMocker()
|
||||
|
@ -10,7 +10,7 @@ from custom_components.hacs.repositories.plugin import HacsPluginRepository
|
||||
from tests.common import get_hacs
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
async def downloaded_plugin_repository(
|
||||
hass: HomeAssistant,
|
||||
setup_integration: Generator,
|
||||
|
@ -24,7 +24,7 @@ from tests.common import (
|
||||
from tests.conftest import SnapshotFixture
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def _mock_setup_entry(hass: HomeAssistant) -> Generator[None, None, None]:
|
||||
"""Mock setting up a config entry."""
|
||||
hass.data.pop("custom_components", None)
|
||||
|
Reference in New Issue
Block a user