diff --git a/.github/actions/build-vsix/action.yml b/.github/actions/build-vsix/action.yml index 46cbf9c..fda9c17 100644 --- a/.github/actions/build-vsix/action.yml +++ b/.github/actions/build-vsix/action.yml @@ -15,11 +15,11 @@ runs: node-version: ${{ inputs.node_version }} cache: 'npm' - # Minimum supported version is Python 3.8 - - name: Use Python 3.8 + # Minimum supported version is Python 3.9 + - name: Use Python 3.9 uses: actions/setup-python@v2 with: - python-version: '3.8' + python-version: '3.9' - name: Pip cache uses: actions/cache@v2 diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 15c0ffe..d1b207e 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -45,7 +45,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest] - python: ['3.8', '3.9', '3.10', '3.11', '3.12-dev'] + python: ['3.9', '3.10', '3.11', '3.12', '3.13'] steps: - name: Checkout @@ -53,11 +53,11 @@ jobs: with: path: ${{ env.special-working-directory-relative }} - # Install bundled libs using 3.8 even though you test it on other versions. - - name: Use Python 3.8 + # Install bundled libs using 3.9 even though you test it on other versions. + - name: Use Python 3.9 uses: actions/setup-python@v5 with: - python-version: '3.8' + python-version: '3.9' - name: Update pip, install wheel and nox run: python -m pip install -U pip wheel nox @@ -68,7 +68,7 @@ jobs: run: python -m nox --session install_bundled_libs shell: bash - # Now that the bundle is installed to target using python 3.8 + # Now that the bundle is installed to target using python 3.9 # switch back the python we want to test with - name: Use Python ${{ matrix.python }} uses: actions/setup-python@v5 diff --git a/.github/workflows/push-check.yml b/.github/workflows/push-check.yml index a075cb3..73bb8d7 100644 --- a/.github/workflows/push-check.yml +++ b/.github/workflows/push-check.yml @@ -50,7 +50,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest] - python: ['3.8', '3.9', '3.10', '3.11', '3.12-dev'] + python: ['3.9', '3.10', '3.11', '3.12', '3.13'] steps: - name: Checkout @@ -58,11 +58,11 @@ jobs: with: path: ${{ env.special-working-directory-relative }} - # Install bundled libs using 3.8 even though you test it on other versions. - - name: Use Python 3.8 + # Install bundled libs using 3.9 even though you test it on other versions. + - name: Use Python 3.9 uses: actions/setup-python@v5 with: - python-version: '3.8' + python-version: '3.9' - name: Update pip, install wheel and nox run: python -m pip install -U pip wheel nox @@ -73,7 +73,7 @@ jobs: run: python -m nox --session install_bundled_libs shell: bash - # Now that the bundle is installed to target using python 3.8 + # Now that the bundle is installed to target using python 3.9 # switch back the python we want to test with - name: Use Python ${{ matrix.python }} uses: actions/setup-python@v5 diff --git a/README.md b/README.md index 2c23ffc..bafcc63 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,13 @@ A Visual Studio Code extension with support for the Flake8 linter. The extension ships with `flake8==7.1.1`. -> **Note**: The minimum version of Flake8 this extension supports is 5.0.0. If you are having issues with Flake8, please report it to [this issue tracker](https://github.com/PyCQA/flake8/issues) as this extension is just a wrapper around Flake8. +> **Note**: The minimum version of Flake8 this extension supports is 7.0.0. If you are having issues with Flake8, please report it to [this issue tracker](https://github.com/PyCQA/flake8/issues) as this extension is just a wrapper around Flake8. This extension supports all [actively supported versions](https://devguide.python.org/versions/#status-of-python-versions) of the Python language. For more information on Flake8, see https://flake8.pycqa.org/ -- Minimum supported version of `flake8` is `5.0.0`. +- Minimum supported version of `flake8` is `7.0.0`. ## Usage and Features diff --git a/build/azure-pipeline.pre-release.yml b/build/azure-pipeline.pre-release.yml index 358a972..0fb49e2 100644 --- a/build/azure-pipeline.pre-release.yml +++ b/build/azure-pipeline.pre-release.yml @@ -37,7 +37,7 @@ extends: - task: UsePythonVersion@0 inputs: - versionSpec: '3.8' + versionSpec: '3.9' addToPath: true architecture: 'x64' displayName: Select Python version diff --git a/build/azure-pipeline.stable.yml b/build/azure-pipeline.stable.yml index d7370b1..ae16226 100644 --- a/build/azure-pipeline.stable.yml +++ b/build/azure-pipeline.stable.yml @@ -33,7 +33,7 @@ extends: - task: UsePythonVersion@0 inputs: - versionSpec: '3.8' + versionSpec: '3.9' addToPath: true architecture: 'x64' displayName: Select Python version diff --git a/noxfile.py b/noxfile.py index bfe32de..86cca4b 100644 --- a/noxfile.py +++ b/noxfile.py @@ -103,14 +103,14 @@ def _setup_template_environment(session: nox.Session) -> None: _install_bundle(session) -@nox.session(python="3.8") +@nox.session(python="3.9") def install_bundled_libs(session): """Installs the libraries that will be bundled with the extension.""" session.install("wheel") _install_bundle(session) -@nox.session(python="3.8") +@nox.session(python="3.9") def setup(session: nox.Session) -> None: """Sets up the extension for development.""" _setup_template_environment(session) diff --git a/requirements.in b/requirements.in index 237f391..1d59328 100644 --- a/requirements.in +++ b/requirements.in @@ -1,8 +1,9 @@ # This file is used to generate requirements.txt. # To update requirements.txt, run the following commands. -# Use Python 3.8 when creating the environment or using pip-tools -# 1) pip install pip-tools -# 2) pip-compile --generate-hashes --resolver=backtracking --upgrade ./requirements.in +# Use `uv` with Python 3.9 when creating the environment. +# +# Run following command: +# uv pip compile --generate-hashes --upgrade ./requirements.in > .\requirements.txt pygls packaging diff --git a/requirements.txt b/requirements.txt index 7c9d402..52a6849 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,5 @@ -# -# This file is autogenerated by pip-compile with Python 3.8 -# by the following command: -# -# pip-compile --generate-hashes ./requirements.in -# +# This file was autogenerated by uv via the following command: +# uv pip compile --generate-hashes ./requirements.in attrs==25.1.0 \ --hash=sha256:1c97078a80c814273a76b2a298a932eb681c87415c11dee0a6921de7f1b02c3e \ --hash=sha256:c75a69e28a550a7e93789579c22aa26b0f5b83b75dc4e08fe092980051e1090a diff --git a/runtime.txt b/runtime.txt index 7739b5a..47c0b10 100644 --- a/runtime.txt +++ b/runtime.txt @@ -1 +1 @@ -python-3.8.18 \ No newline at end of file +python-3.9.13 \ No newline at end of file diff --git a/src/test/python_tests/requirements.in b/src/test/python_tests/requirements.in index 6fc85b2..76712d5 100644 --- a/src/test/python_tests/requirements.in +++ b/src/test/python_tests/requirements.in @@ -1,8 +1,9 @@ # This file is used to generate requirements.txt. # To update requirements.txt, run the following commands. -# Use Python 3.8 when creating the environment or using pip-tools -# 1) pip install pip-tools -# 2) pip-compile --generate-hashes --resolver=backtracking --upgrade ./src/test/python_tests/requirements.in +# Use `uv` with Python 3.9 when creating the environment. +# +# Run following command: +# uv pip compile --generate-hashes --upgrade ./src/test/python_tests/requirements.in > ./src/test/python_tests/requirements.txt pytest PyHamcrest diff --git a/src/test/python_tests/requirements.txt b/src/test/python_tests/requirements.txt index 3cfbf74..1e5fadb 100644 Binary files a/src/test/python_tests/requirements.txt and b/src/test/python_tests/requirements.txt differ