Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/devcontainers/python:3.8
FROM mcr.microsoft.com/devcontainers/python:3.9

RUN python -m pip install --upgrade pip

Expand Down
10 changes: 2 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/naming-convention": "warn",
"@typescript-eslint/semi": "warn",
Expand All @@ -16,9 +14,5 @@
"no-throw-literal": "warn",
"semi": "off"
},
"ignorePatterns": [
"out",
"dist",
"**/*.d.ts"
]
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
}
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.8
- name: Use Python 3.8
# Minimum supported version is Python 3.9
- name: Use Python 3.9
uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.9'

- name: Pip cache
uses: actions/cache@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/lint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ runs:
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.9'

- name: Pip cache
uses: actions/cache@v4
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ on:
pull_request:

env:
NODE_VERSION: 18.17.1
NODE_VERSION: 22.17.0
TEST_RESULTS_DIRECTORY: .
# Force a path with spaces and unicode chars to test extension works in these scenarios
special-working-directory: './🐍 🐛'
special-working-directory-relative: '🐍 🐛'
special-working-directory: './testingDir'
special-working-directory-relative: 'testingDir'

jobs:
build-vsix:
name: Create VSIX
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build VSIX
uses: ./.github/actions/build-vsix
Expand All @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Lint
uses: ./.github/actions/lint
Expand All @@ -45,19 +45,19 @@ 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
uses: actions/checkout@v3
uses: actions/checkout@v4
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
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.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
Expand Down Expand Up @@ -98,10 +98,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/push-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ on:
- 'release-*'

env:
NODE_VERSION: 18.17.1
NODE_VERSION: 22.17.0
TEST_RESULTS_DIRECTORY: .
# Force a path with spaces and unicode chars to test extension works in these scenarios
special-working-directory: './🐍 🐛'
special-working-directory-relative: '🐍 🐛'
special-working-directory: './testingDir'
special-working-directory-relative: 'testingDir'

jobs:
build-vsix:
name: Create VSIX
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build VSIX
uses: ./.github/actions/build-vsix
Expand All @@ -33,7 +33,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Lint
uses: ./.github/actions/lint
Expand All @@ -50,19 +50,19 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
python: ['3.9', '3.10', '3.11', '3.12', '3.13']

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
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
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.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
Expand Down Expand Up @@ -103,10 +103,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Pylint extension for Visual Studio Code

A Visual Studio Code extension with support for the Pylint linter. This extension ships with `pylint=3.2.3`.
A Visual Studio Code extension with support for the Pylint linter. This extension ships with `pylint=3.3.4`.

> **Note**: The minimum version of Pylint this extension supports is `2.12.2`. If you are having issues with Pylint, please report it to [this issue tracker](https://github.com/pylint-dev/pylint/issues) as this extension is just a wrapper around Pylint.
> **Note**: The minimum version of Pylint this extension supports is `3.3.0`. If you are having issues with Pylint, please report it to [this issue tracker](https://github.com/pylint-dev/pylint/issues) as this extension is just a wrapper around Pylint.

This extension supports all [actively supported versions](https://devguide.python.org/#status-of-python-branches) of the `Python` language (i.e., Python >= 3.8).
This extension supports all [actively supported versions](https://devguide.python.org/#status-of-python-branches) of the Python language.

For more information on Pylint, see https://pylint.readthedocs.io/

Expand Down
4 changes: 2 additions & 2 deletions build/azure-pipeline.pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ extends:
buildSteps:
- task: NodeTool@0
inputs:
versionSpec: '18.17.1'
versionSpec: '20.19.0'
displayName: Select Node version

- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
versionSpec: '3.9'
addToPath: true
architecture: 'x64'
displayName: Select Python version
Expand Down
4 changes: 2 additions & 2 deletions build/azure-pipeline.stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ extends:
buildSteps:
- task: NodeTool@0
inputs:
versionSpec: '18.17.1'
versionSpec: '20.19.0'
displayName: Select Node version

- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
versionSpec: '3.9'
addToPath: true
architecture: 'x64'
displayName: Select Python version
Expand Down
10 changes: 7 additions & 3 deletions bundled/tool/lsp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def quick_fix(self, codes: Union[str, List[str]]):
def decorator(
func: Callable[
[workspace.Document, List[lsp.Diagnostic]], List[lsp.CodeAction]
]
],
):
if isinstance(codes, str):
if codes in self._solutions:
Expand Down Expand Up @@ -735,10 +735,14 @@ def _run_tool_on_document(

argv += TOOL_ARGS + settings["args"] + extra_args

# pygls normalizes the path to lowercase on windows, but we need to resolve the
# correct capitalization to avoid https://github.com/pylint-dev/pylint/issues/10137
resolved_path = str(pathlib.Path(document.path).resolve())

if use_stdin:
argv += ["--from-stdin", document.path]
argv += ["--from-stdin", resolved_path]
else:
argv += [document.path]
argv += [resolved_path]

env = None
if use_path or use_rpc:
Expand Down
8 changes: 4 additions & 4 deletions dev-requirements.in
Original file line number Diff line number Diff line change
@@ -1,9 +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
# --resolver=backtracking is required because current flake8 expects Python >= 3.8.1
# 1) pip install pip-tools
# 2) pip-compile --generate-hashes --upgrade ./dev-requirements.in --resolver=backtracking
# Use `uv` with Python 3.9 when creating the environment.
#
# Run following command:
# uv pip compile --generate-hashes --upgrade -o ./dev-requirements.txt ./dev-requirements.in

black
flake8
Expand Down
Loading