From 91e241a52b1dfbf20749556183a3657760a8791b Mon Sep 17 00:00:00 2001 From: "Stephen J. Fuhry" Date: Sun, 12 Mar 2023 19:06:47 -0400 Subject: [PATCH] add tests for 3.11 --- .github/workflows/build.yml | 2 +- .pre-commit-config.yaml | 5 +++-- pyproject.toml | 2 +- requirements-test.txt | 2 +- tox.ini | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 610bba2..b77f0fb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: # # Please bump to the latest unreleased candidate # when you come across this and have a moment to spare! - python-version: [3.6, 3.7, 3.8, 3.9, 3.10.0] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@master - name: set up Python ${{ matrix.python-version }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 941ab3c..1e050cc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,10 +1,11 @@ repos: - repo: https://github.com/psf/black - rev: 20.8b1 + rev: 23.1.0 hooks: - id: black language_version: python3 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.800 + rev: v1.1.1 hooks: - id: mypy + additional_dependencies: [types-simplejson, types-pytz, packaging] diff --git a/pyproject.toml b/pyproject.toml index 36619cc..461e58a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,2 @@ [tool.black] -target-version = ['py36', 'py37', 'py38'] +target-version = ['py39', 'py310'] diff --git a/requirements-test.txt b/requirements-test.txt index 60896eb..7efcf76 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -5,6 +5,6 @@ pytest-cov # Optional installs for the wheel, but always required for tests marshmallow-enum marshmallow-union -mypy>=0.910 +mypy>=1.1.1 pre-commit~=2.15 diff --git a/tox.ini b/tox.ini index ecbcf8e..cd4347f 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist=lint,py{36,37,38,39,py3} +envlist=lint,py{37,38,39,310,311,py3} [testenv] deps=-r requirements-test.txt