diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 500c17e..8785658 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python: ['3.6', '3.7', '3.8', '3.9', '3.10'] + python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11'] steps: @@ -29,6 +29,9 @@ jobs: - name: Run syntax checker using Tox run: tox -e lint + # Skip linting on EOL Python version because the pre-commit actions + # required supported versions. + if: ${{ matrix.python != '3.6' }} - name: Run Tox # Run tox using the version of Python in `PATH` diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a567bbc..cb0734e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,7 +31,7 @@ repos: - '--skip="./.git*,./saltlint/rules/FileManagedReplaceContentRule.py"' - '-L alse' - repo: https://github.com/PyCQA/pylint.git - rev: v2.9.5 + rev: v2.15.9 hooks: - id: pylint exclude: ^docs/ diff --git a/CHANGELOG.md b/CHANGELOG.md index c317dff..3cf2118 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] ### Added - Rule 219 for catching missing over-indentation of nested dicts ([#284](https://github.com/warpnet/salt-lint/pull/284)). +- Add Python 3.11 support. ## [0.8.0] (2021-11-09) ### Fixed diff --git a/setup.py b/setup.py index b923209..5c86523 100644 --- a/setup.py +++ b/setup.py @@ -77,6 +77,7 @@ def long_description(): 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', 'Topic :: Software Development :: Bug Tracking', 'Topic :: Software Development :: Quality Assurance', 'Topic :: Software Development :: Testing', diff --git a/tox.ini b/tox.ini index f769ce6..c3c99e1 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # install tox" and then run "tox" from this directory. [tox] -envlist = lint,{py36,py37,py38,py39,py310}-install,mypy +envlist = lint,{py36,py37,py38,py39,py310,py311}-install,mypy skip_missing_interpreters = True [testenv] @@ -47,6 +47,10 @@ commands = {[testenv:install]commands} skip_install = {[testenv:install]skip_install} commands = {[testenv:install]commands} +[testenv:py311-install] +skip_install = {[testenv:install]skip_install} +commands = {[testenv:install]commands} + [testenv:lint] description = Run all linters basepython = python3