diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 7f20d34..142e301 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -2,11 +2,9 @@ // https://github.com/microsoft/vscode-dev-containers/tree/v0.193.0/containers/python-3 { "name": "Python 3", - "image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.9", + "image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.10", "settings": { - "terminal.integrated.shell.linux": "/bin/bash", - "python.pythonPath": "/usr/local/bin/python", - "python.languageServer": "Pylance", + "python.defaultInterpreterPath": "/usr/local/bin/python", "python.linting.enabled": true, "python.linting.pylintEnabled": true, "python.linting.flake8Enabled": true, diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a59cd96..b34507f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,7 +4,7 @@ name: Tests on: push: - branches: [ main ] + branches: [main] pull_request: schedule: - cron: "0 0 * * *" @@ -18,20 +18,20 @@ jobs: build: # The type of runner that the job will run on runs-on: ubuntu-latest - + strategy: matrix: - python-version: [3, 3.7, 3.8, 3.9] + python-version: ["3", "3.7", "3.8", "3.9", "3.10"] # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v1 with: - python-version: ${{ matrix.python-version }} + python-version: ${{ matrix.python-version }} # Instead of installing and running tox and tox-gh-actions, # you can simply use this composite run steps action. diff --git a/setup.cfg b/setup.cfg index 48ee7d0..435a2ca 100644 --- a/setup.cfg +++ b/setup.cfg @@ -31,15 +31,15 @@ example = kafka-python test = tox - pytest~=6.2.4 - pytest-asyncio~=0.15.1 - pytest-cov~=2.12.1 - pytest-timeout~=1.4.2 - black==21.7b0 - flake8==3.9.2 - pylint==2.10.2 + pytest~=6.2.5 + pytest-asyncio~=0.16.0 + pytest-cov~=3.0.0 + pytest-timeout~=2.0.2 + black==21.12b0 + flake8==4.0.1 + pylint==2.12.2 pydocstyle==6.1.1 - isort~=5.9.3 + isort~=5.10.1 [options.packages.find] where = src \ No newline at end of file diff --git a/src/pyduke_energy/realtime.py b/src/pyduke_energy/realtime.py index cb59f62..a9e8277 100644 --- a/src/pyduke_energy/realtime.py +++ b/src/pyduke_energy/realtime.py @@ -8,7 +8,7 @@ import time from typing import Optional -import paho.mqtt.client as mqtt # type: ignore +import paho.mqtt.client as mqtt from pyduke_energy.client import DukeEnergyClient from pyduke_energy.const import ( diff --git a/tox.ini b/tox.ini index daa6d54..76ceb08 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py3, py37, py38, py39, lint +envlist = py3, py37, py38, py39, py310, lint skip_missing_interpreters = True [gh-actions] @@ -8,6 +8,7 @@ python = 3.7: py37, lint 3.8: py38, lint 3.9: py39, lint + 3.10: py310, lint [testenv] extras = test