Skip to content

Commit

Permalink
Fix linting problems.
Browse files Browse the repository at this point in the history
  • Loading branch information
lnx85 committed May 3, 2024
1 parent 99dab12 commit cb2922b
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: isort
run: isort --recursive --diff .
- name: Black
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
python-version: ["3.12"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[tool.black]
target-version = ["py310", "py311"]
target-version = ["py310", "py311", "py312"]
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
black
black==22.1.0
isort
pytest-homeassistant-custom-component~=0.13.54
pytest
Expand Down
1 change: 0 additions & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Initialize tests."""


from custom_components.delios.client import DeliosClient


Expand Down
1 change: 1 addition & 0 deletions tests/test_binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the binary sensor entity."""

from unittest.mock import Mock

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the config flow."""

from unittest.mock import ANY, patch

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the sensor entity."""

from unittest.mock import Mock

import pytest
Expand Down

0 comments on commit cb2922b

Please sign in to comment.