Skip to content

Commit

Permalink
Update to latest version of packages and python (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
karthiknadig authored Oct 5, 2023
1 parent a3af8ca commit 683ebb6
Show file tree
Hide file tree
Showing 17 changed files with 558 additions and 594 deletions.
6 changes: 3 additions & 3 deletions .github/actions/build-vsix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ runs:
node-version: ${{ inputs.node_version }}
cache: 'npm'

# Minimum supported version is Python 3.7
- name: Use Python 3.7
# Minimum supported version is Python 3.8
- name: Use Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: '3.8'

- name: Pip cache
uses: actions/cache@v2
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ jobs:
with:
path: ${{ env.special-working-directory-relative }}

# Install bundled libs using 3.7 even though you test it on other versions.
- name: Use Python 3.7
# Install bundled libs using 3.8 even though you test it on other versions.
- name: Use Python 3.8
uses: actions/setup-python@v4
with:
python-version: '3.7'
python-version: '3.8'

- name: Update pip, install wheel and nox
run: python -m pip install -U pip wheel nox
Expand All @@ -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.7
# Now that the bundle is installed to target using python 3.8
# switch back the python we want to test with
- name: Use Python ${{ matrix.python }}
uses: actions/setup-python@v4
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/push-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python: ['3.7', '3.8', '3.9', '3.10']
python: ['3.8', '3.9', '3.10', '3.11', '3.12-dev']

steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: ${{ env.special-working-directory-relative }}

# Install bundled libs using 3.7 even though you test it on other versions.
- name: Use Python 3.7
# Install bundled libs using 3.8 even though you test it on other versions.
- name: Use Python 3.8
uses: actions/setup-python@v4
with:
python-version: '3.7'
python-version: '3.8'

- name: Update pip, install wheel and nox
run: python -m pip install -U pip wheel nox
Expand All @@ -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.7
# Now that the bundle is installed to target using python 3.8
# switch back the python we want to test with
- name: Use Python ${{ matrix.python }}
uses: actions/setup-python@v4
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Flake8 extension for Visual Studio Code

A Visual Studio Code extension with support for the `flake8` linter. The extension ships with `flake8=5.0.4`.
A Visual Studio Code extension with support for the `flake8` linter. The extension ships with `flake8=6.1.0`.

Note:

- This extension is supported for all [actively supported versions](https://devguide.python.org/#status-of-python-branches) of the `python` language (i.e., python >= 3.7).
- This extension is supported for all [actively supported versions](https://devguide.python.org/#status-of-python-branches) of the `python` language (i.e., python >= 3.8).
- Minimum supported version of `flake8` is `5.0.0`.

## Usage
Expand Down
2 changes: 1 addition & 1 deletion build/azure-pipeline.pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ extends:

- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
versionSpec: '3.8'
addToPath: true
architecture: 'x64'
displayName: Select Python version
Expand Down
2 changes: 1 addition & 1 deletion build/azure-pipeline.stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extends:

- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
versionSpec: '3.8'
addToPath: true
architecture: 'x64'
displayName: Select Python version
Expand Down
2 changes: 1 addition & 1 deletion bundled/tool/lsp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def _log_version_info() -> None:

# This is text we get from running `flake8 --version`
# Example:
# 5.0.4 (mccabe: 0.7.0, pycodestyle: 2.9.1, pyflakes: 2.5.0) CPython 3.7.7
# 5.0.4 (mccabe: 0.7.0, pycodestyle: 2.9.1, pyflakes: 2.5.0) CPython 3.8.7
# ^---^---- this is the version info we want
first_line = result.stdout.splitlines(keepends=False)[0]
actual_version = first_line.split(" ")[0]
Expand Down
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ def _setup_template_environment(session: nox.Session) -> None:
_install_bundle(session)


@nox.session(python="3.7")
@nox.session(python="3.8")
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.7")
@nox.session(python="3.8")
def setup(session: nox.Session) -> None:
"""Sets up the extension for development."""
_setup_template_environment(session)
Expand Down
Loading

0 comments on commit 683ebb6

Please sign in to comment.