Skip to content

Commit

Permalink
Bump actions/checkout from 3 to 4 (#237)
Browse files Browse the repository at this point in the history
* Bump actions/checkout from 3 to 4

Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix import of os and os.path

* Use PyYAML 6.0.1 on Python 3.12

* Update version to depending packages to allow Python 3.12 (requires Python >= 3.8)

* Remove deprecated pylint check 'no-self-use'

* Fix check from isort

* Fix flake8 error in f-string

* Also support Python 3.11 and 3.12

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Simon Hansen <67142049+DurgNomis-drol@users.noreply.github.com>
Co-authored-by: John de Rooij <joro75@users.noreply.github.com>
Co-authored-by: John de Rooij <john.de.rooij@gmail.com>
  • Loading branch information
4 people authored Nov 13, 2023
1 parent e2faa70 commit 1288d94
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 83 deletions.
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",
"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

0 comments on commit 1288d94

Please sign in to comment.