Skip to content

Commit 218b86d

Browse files
committed
Fix linting errors
1 parent f103fa6 commit 218b86d

File tree

8 files changed

+164
-150
lines changed

8 files changed

+164
-150
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959

6060
- name: Run mypy
6161
run: |
62-
poetry run mypy src
62+
poetry run mypy
6363
6464
- name: Lint with Ruff
6565
run: |

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
- id: poetry-check
1616
- id: poetry-lock
1717
- repo: https://github.com/astral-sh/ruff-pre-commit
18-
rev: v0.11.12
18+
rev: v0.12.0
1919
hooks:
2020
- id: ruff
2121
args:
@@ -26,7 +26,7 @@ repos:
2626
hooks:
2727
- id: mypy
2828
name: Check with mypy
29-
entry: poetry run mypy src
29+
entry: poetry run mypy
3030
language: system
3131
types:
3232
- python

poetry.lock

Lines changed: 157 additions & 141 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ build-backend = "poetry.core.masonry.api"
3434
pytest = "^8.2.2"
3535
mock = "^5.1.0"
3636
coverage = "^7.5.4"
37-
ruff = "^0.11.7"
37+
ruff = "^0.12.0"
3838
pytest-cov = "^5.0.0"
3939
pytest-asyncio = "^0.24.0"
4040
pytest-mock = "^3.14.0"

src/saic_ismart_client_ng/api/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ async def execute_api_call_with_event_id_inner(*, event_id: str) -> T | None:
283283

284284
return await execute_api_call_with_event_id_inner(event_id="0")
285285

286-
# pylint: disable=too-many-branches
287286
async def __deserialize(
288287
self,
289288
request: httpx.Request,

src/saic_ismart_client_ng/api/vehicle/schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class ExtendedVehicleStatus:
125125
@dataclass
126126
class VehicleStatusResp:
127127
# pylint: disable=import-outside-toplevel
128-
from saic_ismart_client_ng.api.schema import GpsPosition
128+
from saic_ismart_client_ng.api.schema import GpsPosition # noqa: PLC0415
129129

130130
basicVehicleStatus: BasicVehicleStatus | None = None
131131
extendedVehicleStatus: ExtendedVehicleStatus | None = None
@@ -203,7 +203,7 @@ def rvc_req_type_decoded(self) -> bytes | None:
203203
@dataclass
204204
class VehicleControlResp:
205205
# pylint: disable=import-outside-toplevel
206-
from saic_ismart_client_ng.api.schema import GpsPosition
206+
from saic_ismart_client_ng.api.schema import GpsPosition # noqa: PLC0415
207207

208208
basicVehicleStatus: BasicVehicleStatus | None = None
209209
failureType: int | None = None

src/saic_ismart_client_ng/api/vehicle_charging/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class ChargingStatus:
201201
@dataclass
202202
class ChargeStatusResp:
203203
# pylint: disable=import-outside-toplevel
204-
from saic_ismart_client_ng.api.schema import GpsPosition
204+
from saic_ismart_client_ng.api.schema import GpsPosition # noqa: PLC0415
205205

206206
chargingStatus: ChargingStatus | None = None
207207
gpsPosition: GpsPosition | None = None

src/saic_ismart_client_ng/net/client/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def __init__(
2727
self.__listener = listener
2828
self.__logger = logging.getLogger(__name__)
2929
self.__user_token: str = ""
30-
self.__class_name: str = ""
3130
self.__client = httpx.AsyncClient(
3231
timeout=Timeout(timeout=configuration.read_timeout),
3332
event_hooks={

0 commit comments

Comments
 (0)