Skip to content
Merged
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 .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
fail-fast: false
matrix:
PYTHON_VERSION: ['3.11', '3.10', '3.9']
PYTHON_VERSION: ['3.14', '3.13', '3.12', '3.11', '3.10', '3.9']
timeout-minutes: 10
steps:
- uses: actions/cache@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
fail-fast: false
matrix:
PYTHON_VERSION: ['3.11', '3.10', '3.9']
PYTHON_VERSION: ['3.14', '3.12', '3.9']
timeout-minutes: 10
steps:
- uses: actions/cache@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
fail-fast: false
matrix:
PYTHON_VERSION: ['3.11', '3.10', '3.9']
PYTHON_VERSION: ['3.14', '3.12', '3.9']
timeout-minutes: 10
steps:
- uses: actions/cache@v4
Expand Down
11 changes: 8 additions & 3 deletions pylsp/python_lsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import logging
import os
import socketserver
import sys
import threading
import uuid
from functools import partial
Expand Down Expand Up @@ -71,9 +72,13 @@ def shutdown_server(check_parent_process, *args):
handler_class.__name__ + "Handler",
(_StreamHandlerWrapper,),
{
"DELEGATE_CLASS": partial(
handler_class, check_parent_process=check_parent_process
),
# We need to wrap this in staticmethod due to the changes to
# functools.partial in Python 3.14+
"DELEGATE_CLASS": staticmethod(
partial(handler_class, check_parent_process=check_parent_process)
)
if sys.version_info >= (3, 14)
else partial(handler_class, check_parent_process=check_parent_process),
"SHUTDOWN_CALL": partial(shutdown_server, check_parent_process),
},
)
Expand Down
2 changes: 1 addition & 1 deletion test/plugins/test_flake8_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def test_flake8_config_param(workspace) -> None:
with patch("pylsp.plugins.flake8_lint.Popen") as popen_mock:
mock_instance = popen_mock.return_value
mock_instance.communicate.return_value = [b"", b""]
flake8_conf = "/tmp/some.cfg"
flake8_conf = "C:\\some.cfg" if os.name == "nt" else "/tmp/some.cfg"
workspace._config.update({"plugins": {"flake8": {"config": flake8_conf}}})
_name, doc = temp_document(DOC, workspace)
flake8_lint.pylsp_lint(workspace, doc)
Expand Down
Loading