Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump actions/checkout from 3 to 4 #237

Merged
merged 13 commits into from
Nov 13, 2023
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
fail-fast: false

steps:
- name: Check out the repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
name: Pre-commit
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: ubuntu-latest
env:
OS: ubuntu-latest
PYTHON: ${{ matrix.python-version }}
steps:
- name: Check out the repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build package and publish to pypi
uses: JRubics/poetry-publish@v1.17
with:
Expand Down
2 changes: 1 addition & 1 deletion mytoyota/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ async def get_trips(self, vin: str) -> list[Trip]:
_LOGGER.debug(f"Getting trips for {censor_vin(vin)}...")

raw_trips = await self.api.get_trips_endpoint(vin)
_LOGGER.debug(f"received {len(raw_trips.get('recentTrips',[]))} trips")
_LOGGER.debug(f"received {len(raw_trips.get('recentTrips', []))} trips")
return [Trip(trip) for trip in raw_trips.get("recentTrips", [])]

async def get_trip(self, vin: str, trip_id: str) -> DetailedTrip:
Expand Down
116 changes: 46 additions & 70 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
DurgNomis-drol marked this conversation as resolved.
Show resolved Hide resolved
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
keywords = [
"Toyota",
Expand All @@ -26,19 +27,19 @@ repository = "https://github.com/DurgNomis-drol/mytoyota"
"Release Notes" = "https://github.com/DurgNomis-drol/mytoyota/releases"

[tool.poetry.dependencies]
python = "^3.8"
python = "^3.8.1"
langcodes = "^3.1"
httpx = ">=0.18.1"
arrow = "^1.1"
importlib-metadata = {version = "^1.0", python = "<3.8"}

[tool.poetry.dev-dependencies]
pre-commit = "^2.20.0"
black = ">=22.3, !=22.10.0" # https://github.com/psf/black/issues/3312
flake8 = "^3.8.4"
flake8-bugbear = "^22.10.27"
flake8-comprehensions = "^3.4.0"
pylint = "^3.0.2"
pre-commit = "^3.0.0"
black = ">=23.9.1"
flake8 = "^6.0.0"
flake8-bugbear = "^23.7.10"
flake8-comprehensions = "^3.12.0"
pylint = "^3.0.0"
isort = "^5.10.1"
codespell = "^2.0.0"
pytest = "^7.2.0"
Expand Down
1 change: 1 addition & 0 deletions tests/test_myt.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import asyncio
import datetime
import json
import os
import os.path
import re
from typing import Optional, Union
Expand Down
1 change: 1 addition & 0 deletions tests/test_sensors.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""pytest tests for mytoyota.models.sensors"""
import json
import os
import os.path

from mytoyota.models.sensors import (
Door,
Expand Down
1 change: 1 addition & 0 deletions tests/test_vehicle.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""pytest tests for mytoyota.models.vehicle.Vehicle"""
import json
import os
import os.path

import pytest

Expand Down