Skip to content

Commit 3528b2f

Browse files
committed
⬆️ Upgrade pygls
1 parent e24759b commit 3528b2f

File tree

4 files changed

+20
-19
lines changed

4 files changed

+20
-19
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
- windows-latest
3232
runs-on: ${{matrix.runs-on}}
3333
steps:
34-
- uses: actions/checkout@v3
35-
- uses: actions/setup-python@v4
34+
- uses: actions/checkout@v4
35+
- uses: actions/setup-python@v5
3636
with:
3737
python-version: ${{env.python-version}}
3838
cache: ${{env.cache}}
@@ -45,7 +45,7 @@ jobs:
4545
- name: Test
4646
run: |
4747
pytest --cov
48-
- uses: codecov/codecov-action@v3
48+
- uses: codecov/codecov-action@v4
4949
build:
5050
needs: test
5151
strategy:
@@ -57,8 +57,8 @@ jobs:
5757
- windows-latest
5858
runs-on: ${{matrix.runs-on}}
5959
steps:
60-
- uses: actions/checkout@v3
61-
- uses: actions/setup-python@v4
60+
- uses: actions/checkout@v4
61+
- uses: actions/setup-python@v5
6262
with:
6363
python-version: ${{env.python-version}}
6464
cache: ${{env.cache}}
@@ -75,12 +75,12 @@ jobs:
7575
if: runner.os == 'Linux' && startsWith(github.ref, 'refs/tags/')
7676
with:
7777
password: ${{secrets.PYPI_API_TOKEN}}
78-
- uses: actions/upload-artifact@v3
78+
- uses: actions/upload-artifact@v4
7979
if: runner.os == 'Linux' && ! startsWith(github.ref, 'refs/tags/')
8080
with:
8181
path: |
8282
dist/*
83-
- uses: softprops/action-gh-release@v1
83+
- uses: softprops/action-gh-release@v2
8484
if: runner.os == 'Linux' && startsWith(github.ref, 'refs/tags/')
8585
with:
8686
# body_path: build/CHANGELOG.md

.pre-commit-config.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ exclude: ^templates/|\.json$
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v5.0.0
6+
rev: v6.0.0
77
hooks:
88
- id: check-added-large-files
99
- id: fix-byte-order-marker
@@ -27,7 +27,7 @@ repos:
2727
hooks:
2828
- id: remove-crlf
2929
- repo: https://github.com/codespell-project/codespell
30-
rev: v2.3.0
30+
rev: v2.4.1
3131
hooks:
3232
- id: codespell
3333
additional_dependencies:
@@ -39,7 +39,7 @@ repos:
3939
args:
4040
- --msg-filename
4141
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
42-
rev: 3.0.3
42+
rev: 3.4.0
4343
hooks:
4444
- id: editorconfig-checker
4545
- repo: https://github.com/jumanjihouse/pre-commit-hooks
@@ -51,15 +51,15 @@ repos:
5151
exclude_types:
5252
- zsh
5353
- repo: https://github.com/rhysd/actionlint
54-
rev: v1.7.4
54+
rev: v1.7.8
5555
hooks:
5656
- id: actionlint
5757
- repo: https://github.com/adrienverge/yamllint
58-
rev: v1.35.1
58+
rev: v1.37.1
5959
hooks:
6060
- id: yamllint
6161
- repo: https://github.com/executablebooks/mdformat
62-
rev: 0.7.18
62+
rev: 0.7.22
6363
hooks:
6464
- id: mdformat
6565
additional_dependencies:
@@ -73,22 +73,22 @@ repos:
7373
- mdformat-config
7474
- mdformat-web
7575
- repo: https://github.com/DavidAnson/markdownlint-cli2
76-
rev: v0.14.0
76+
rev: v0.18.1
7777
hooks:
7878
- id: markdownlint-cli2
7979
additional_dependencies:
8080
- markdown-it-texmath
8181
- repo: https://github.com/scop/pre-commit-shfmt
82-
rev: v3.10.0-1
82+
rev: v3.12.0-2
8383
hooks:
8484
- id: shfmt
8585
- repo: https://github.com/astral-sh/ruff-pre-commit
86-
rev: v0.7.2
86+
rev: v0.14.1
8787
hooks:
88-
- id: ruff
88+
- id: ruff-check
8989
- id: ruff-format
9090
- repo: https://github.com/kumaraditya303/mirrors-pyright
91-
rev: v1.1.387
91+
rev: v1.1.406
9292
hooks:
9393
- id: pyright
9494

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ fqdn
66
lsp-tree-sitter >= 0.0.16
77
# ~/.config/pacman/template.md.j2
88
platformdirs
9+
pygls >= 2.0.0
910
# validate uri
1011
rfc3987
1112
tree-sitter-bash

src/termux_language_server/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
TextDocumentPositionParams,
3131
TextEdit,
3232
)
33-
from pygls.server import LanguageServer
33+
from pygls.lsp.server import LanguageServer
3434

3535
from .finders import (
3636
DIAGNOSTICS_FINDER_CLASSES,

0 commit comments

Comments
 (0)