Skip to content

Commit

Permalink
Bump ruff from 0.5.7 to 0.6.1 (#3983)
Browse files Browse the repository at this point in the history
* 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](astral-sh/ruff@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] <[email protected]>

* lint

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: ludeeus <[email protected]>
  • Loading branch information
dependabot[bot] and ludeeus authored Aug 20, 2024
1 parent 9678003 commit 5bf7bd9
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 16 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ ignore = [
"ARG001",
"ARG002",
"ARG005",
"ASYNC110",
"BLE001",
"C901",
"COM812",
Expand Down
2 changes: 1 addition & 1 deletion requirements_lint.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
26 changes: 13 additions & 13 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""

Expand Down Expand Up @@ -166,54 +166,54 @@ def exc_handle(loop, context):
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")
Expand All @@ -230,7 +230,7 @@ async def assert_hacs_data(
pass


@pytest.fixture()
@pytest.fixture
def snapshots(snapshot: Snapshot) -> SnapshotFixture:
"""Fixture for a snapshot."""
snapshot.snapshot_dir = "tests/snapshots"
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion tests/repositories/test_plugin_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from tests.common import get_hacs


@pytest.fixture()
@pytest.fixture
async def downloaded_plugin_repository(
hass: HomeAssistant,
setup_integration: Generator,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
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)
Expand Down

0 comments on commit 5bf7bd9

Please sign in to comment.