Skip to content

Commit 5bf7bd9

Browse files
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](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] <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>
1 parent 9678003 commit 5bf7bd9

5 files changed

Lines changed: 17 additions & 16 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ ignore = [
5454
"ARG001",
5555
"ARG002",
5656
"ARG005",
57+
"ASYNC110",
5758
"BLE001",
5859
"C901",
5960
"COM812",

requirements_lint.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ isort==5.13.2
44
pre-commit==3.8.0
55
pre-commit-hooks==4.6.0
66
pyupgrade==3.17.0
7-
ruff==0.5.7
7+
ruff==0.6.1
88
vulture==2.11

tests/conftest.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -92,20 +92,20 @@ def set_request_context(request: pytest.FixtureRequest):
9292
REQUEST_CONTEXT.set(request)
9393

9494

95-
@pytest.fixture()
95+
@pytest.fixture
9696
def connection():
9797
"""Mock fixture for connection."""
9898
return MagicMock()
9999

100100

101-
@pytest.fixture()
101+
@pytest.fixture
102102
def hass_storage():
103103
"""Fixture to mock storage."""
104104
with mock_storage() as stored_data:
105105
yield stored_data
106106

107107

108-
@pytest.fixture()
108+
@pytest.fixture
109109
async def hass(time_freezer, event_loop, tmpdir, check_report_issue: None):
110110
"""Fixture to provide a test instance of Home Assistant."""
111111

@@ -166,54 +166,54 @@ def exc_handle(loop, context):
166166
shutil.rmtree(hass.config.config_dir)
167167

168168

169-
@pytest.fixture()
169+
@pytest.fixture
170170
def hacs(hass: HomeAssistant, setup_integration: None) -> HacsBase:
171171
"""Fixture to provide a HACS object."""
172172
return get_hacs(hass)
173173

174174

175-
@pytest.fixture()
175+
@pytest.fixture
176176
def repository(hacs):
177177
"""Fixtrue for HACS repository object"""
178178
return dummy_repository_base(hacs)
179179

180180

181-
@pytest.fixture()
181+
@pytest.fixture
182182
def repository_integration(hacs):
183183
"""Fixtrue for HACS integration repository object"""
184184
repository_obj = HacsIntegrationRepository(hacs, "test/test")
185185
return dummy_repository_base(hacs, repository_obj)
186186

187187

188-
@pytest.fixture()
188+
@pytest.fixture
189189
def repository_theme(hacs):
190190
"""Fixtrue for HACS theme repository object"""
191191
repository_obj = HacsThemeRepository(hacs, "test/test")
192192
return dummy_repository_base(hacs, repository_obj)
193193

194194

195-
@pytest.fixture()
195+
@pytest.fixture
196196
def repository_plugin(hacs):
197197
"""Fixtrue for HACS plugin repository object"""
198198
repository_obj = HacsPluginRepository(hacs, "test/test")
199199
return dummy_repository_base(hacs, repository_obj)
200200

201201

202-
@pytest.fixture()
202+
@pytest.fixture
203203
def repository_python_script(hacs):
204204
"""Fixtrue for HACS python_script repository object"""
205205
repository_obj = HacsPythonScriptRepository(hacs, "test/test")
206206
return dummy_repository_base(hacs, repository_obj)
207207

208208

209-
@pytest.fixture()
209+
@pytest.fixture
210210
def repository_template(hacs):
211211
"""Fixtrue for HACS template repository object"""
212212
repository_obj = HacsTemplateRepository(hacs, "test/test")
213213
return dummy_repository_base(hacs, repository_obj)
214214

215215

216-
@pytest.fixture()
216+
@pytest.fixture
217217
def repository_appdaemon(hacs):
218218
"""Fixtrue for HACS appdaemon repository object"""
219219
repository_obj = HacsAppdaemonRepository(hacs, "test/test")
@@ -230,7 +230,7 @@ async def assert_hacs_data(
230230
pass
231231

232232

233-
@pytest.fixture()
233+
@pytest.fixture
234234
def snapshots(snapshot: Snapshot) -> SnapshotFixture:
235235
"""Fixture for a snapshot."""
236236
snapshot.snapshot_dir = "tests/snapshots"
@@ -345,7 +345,7 @@ async def ws_client(hass: HomeAssistant) -> WSClient:
345345
return WSClient(hass, hass.auth.async_create_access_token(refresh_token))
346346

347347

348-
@pytest.fixture()
348+
@pytest.fixture
349349
def response_mocker() -> ResponseMocker:
350350
"""Mock fixture for responses."""
351351
mocker = ResponseMocker()

tests/repositories/test_plugin_repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from tests.common import get_hacs
1111

1212

13-
@pytest.fixture()
13+
@pytest.fixture
1414
async def downloaded_plugin_repository(
1515
hass: HomeAssistant,
1616
setup_integration: Generator,

tests/test_config_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from tests.conftest import SnapshotFixture
2525

2626

27-
@pytest.fixture()
27+
@pytest.fixture
2828
def _mock_setup_entry(hass: HomeAssistant) -> Generator[None, None, None]:
2929
"""Mock setting up a config entry."""
3030
hass.data.pop("custom_components", None)

0 commit comments

Comments
 (0)