diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 610bba2..d93423e 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 }} @@ -22,8 +22,9 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -U tox tox-gh-actions coveralls + pip install -U tox tox-gh-actions coveralls types-pkg_resources types-setuptools pip install -r requirements-tox.txt -r requirements-test.txt + mypy --install-types --non-interactive . - name: Run pre-commit run: | pre-commit run --all-files --show-diff-on-failure diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 941ab3c..7ca90dc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,10 +1,10 @@ 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 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