Skip to content

Commit 777dca9

Browse files
[pre-commit.ci] pre-commit autoupdate (#95)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/asottile/pyupgrade: v3.15.0 → v3.15.1](asottile/pyupgrade@v3.15.0...v3.15.1) - [github.com/psf/black: 23.12.1 → 24.2.0](psf/black@23.12.1...24.2.0) - [github.com/PyCQA/bandit: 1.7.6 → 1.7.7](PyCQA/bandit@1.7.6...1.7.7) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent da585f7 commit 777dca9

File tree

8 files changed

+12
-6
lines changed

8 files changed

+12
-6
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
repos:
22
- repo: https://github.com/asottile/pyupgrade
3-
rev: v3.15.0
3+
rev: v3.15.1
44
hooks:
55
- id: pyupgrade
66
args: [--py37-plus]
77
- repo: https://github.com/psf/black
8-
rev: 23.12.1
8+
rev: 24.2.0
99
hooks:
1010
- id: black
1111
args:
@@ -30,7 +30,7 @@ repos:
3030
- pydocstyle==5.0.2
3131
files: ^(subarulink)/.+\.py$
3232
- repo: https://github.com/PyCQA/bandit
33-
rev: 1.7.6
33+
rev: 1.7.7
3434
hooks:
3535
- id: bandit
3636
args:

subarulink/controller.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -954,9 +954,9 @@ def _parse_vehicle(self, vehicle: dict[str, Any]) -> None:
954954
sc.VEHICLE_LAST_UPDATE: datetime(1980, 1, 2, 1, 0, 0),
955955
}
956956
)
957-
self._vehicles[vin][sc.VEHICLE_HEALTH][
958-
sc.HEALTH_RECOMMENDED_TIRE_PRESSURE
959-
] = self._parse_recommended_tire_pressure(vin)
957+
self._vehicles[vin][sc.VEHICLE_HEALTH][sc.HEALTH_RECOMMENDED_TIRE_PRESSURE] = (
958+
self._parse_recommended_tire_pressure(vin)
959+
)
960960

961961
async def _remote_query(self, vin: str, cmd: str) -> dict[str, Any]:
962962
tries_left = 2

tests/api_responses.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Subaru API responses used for tests."""
2+
23
from copy import deepcopy
34
import json
45

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Common helper functions to test subarulink."""
2+
23
import asyncio
34
from datetime import datetime, timedelta
45
import json

tests/test_cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for subarulink CLI."""
2+
23
import asyncio
34
import sys
45
from unittest.mock import patch

tests/test_connection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for subarulink connection functions."""
2+
23
import asyncio
34
import time
45

tests/test_remote_commands.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for subarulink remote commands."""
2+
23
import asyncio
34
import time
45

tests/test_vehicle_status.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for subarulink vehicle status functions."""
2+
23
import asyncio
34

45
import pytest

0 commit comments

Comments
 (0)