Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
update devcontainer to python 3.10; tick dev requirement versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mjmeli committed Dec 16, 2021
1 parent 799ae7e commit f10bbbe
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 19 deletions.
6 changes: 2 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Tests

on:
push:
branches: [ main ]
branches: [main]
pull_request:
schedule:
- cron: "0 0 * * *"
Expand All @@ -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.
Expand Down
16 changes: 8 additions & 8 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/pyduke_energy/realtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py3, py37, py38, py39, lint
envlist = py3, py37, py38, py39, py310, lint
skip_missing_interpreters = True

[gh-actions]
Expand All @@ -8,6 +8,7 @@ python =
3.7: py37, lint
3.8: py38, lint
3.9: py39, lint
3.10: py310, lint

[testenv]
extras = test
Expand Down

0 comments on commit f10bbbe

Please sign in to comment.