Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#95)
Browse files Browse the repository at this point in the history
* [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>
  • Loading branch information
pre-commit-ci[bot] authored Feb 27, 2024
1 parent da585f7 commit 777dca9
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.15.1
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.2.0
hooks:
- id: black
args:
Expand All @@ -30,7 +30,7 @@ repos:
- pydocstyle==5.0.2
files: ^(subarulink)/.+\.py$
- repo: https://github.com/PyCQA/bandit
rev: 1.7.6
rev: 1.7.7
hooks:
- id: bandit
args:
Expand Down
6 changes: 3 additions & 3 deletions subarulink/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -954,9 +954,9 @@ def _parse_vehicle(self, vehicle: dict[str, Any]) -> None:
sc.VEHICLE_LAST_UPDATE: datetime(1980, 1, 2, 1, 0, 0),
}
)
self._vehicles[vin][sc.VEHICLE_HEALTH][
sc.HEALTH_RECOMMENDED_TIRE_PRESSURE
] = self._parse_recommended_tire_pressure(vin)
self._vehicles[vin][sc.VEHICLE_HEALTH][sc.HEALTH_RECOMMENDED_TIRE_PRESSURE] = (
self._parse_recommended_tire_pressure(vin)
)

async def _remote_query(self, vin: str, cmd: str) -> dict[str, Any]:
tries_left = 2
Expand Down
1 change: 1 addition & 0 deletions tests/api_responses.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Subaru API responses used for tests."""

from copy import deepcopy
import json

Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Common helper functions to test subarulink."""

import asyncio
from datetime import datetime, timedelta
import json
Expand Down
1 change: 1 addition & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for subarulink CLI."""

import asyncio
import sys
from unittest.mock import patch
Expand Down
1 change: 1 addition & 0 deletions tests/test_connection.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for subarulink connection functions."""

import asyncio
import time

Expand Down
1 change: 1 addition & 0 deletions tests/test_remote_commands.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for subarulink remote commands."""

import asyncio
import time

Expand Down
1 change: 1 addition & 0 deletions tests/test_vehicle_status.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for subarulink vehicle status functions."""

import asyncio

import pytest
Expand Down

0 comments on commit 777dca9

Please sign in to comment.