Skip to content

Commit d54297f

Browse files
committed
👽 Adapt to python-tree-sitter 0.23.0
1 parent b01608f commit d54297f

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ repos:
2727
hooks:
2828
- id: remove-crlf
2929
- repo: https://github.com/codespell-project/codespell
30-
rev: v2.2.6
30+
rev: v2.3.0
3131
hooks:
3232
- id: codespell
3333
additional_dependencies:
@@ -39,15 +39,15 @@ repos:
3939
args:
4040
- --msg-filename
4141
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
42-
rev: 2.7.3
42+
rev: 3.0.3
4343
hooks:
4444
- id: editorconfig-checker
4545
- repo: https://github.com/jumanjihouse/pre-commit-hooks
4646
rev: 3.0.0
4747
hooks:
4848
- id: check-mailmap
4949
- repo: https://github.com/rhysd/actionlint
50-
rev: v1.7.0
50+
rev: v1.7.2
5151
hooks:
5252
- id: actionlint
5353
- repo: https://github.com/adrienverge/yamllint
@@ -69,18 +69,18 @@ repos:
6969
- mdformat-config
7070
- mdformat-web
7171
- repo: https://github.com/DavidAnson/markdownlint-cli2
72-
rev: v0.13.0
72+
rev: v0.14.0
7373
hooks:
7474
- id: markdownlint-cli2
7575
additional_dependencies:
7676
- markdown-it-texmath
7777
- repo: https://github.com/astral-sh/ruff-pre-commit
78-
rev: v0.4.4
78+
rev: v0.6.7
7979
hooks:
8080
- id: ruff
8181
- id: ruff-format
8282
- repo: https://github.com/kumaraditya303/mirrors-pyright
83-
rev: v1.1.362
83+
rev: v1.1.381
8484
hooks:
8585
- id: pyright
8686

src/mutt_language_server/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313

1414
SCHEMAS = {}
1515
QUERIES = {}
16-
language = Language(get_language_ptr())
1716
parser = Parser()
18-
parser.set_language(language)
17+
parser.language = Language(get_language_ptr())
1918

2019

2120
def get_query(name: str, filetype: FILETYPE = "neomuttrc") -> Query:
@@ -37,7 +36,7 @@ def get_query(name: str, filetype: FILETYPE = "neomuttrc") -> Query:
3736
)
3837
) as f:
3938
text = f.read()
40-
QUERIES[name] = language.query(text)
39+
QUERIES[name] = parser.language.query(text)
4140
return QUERIES[name]
4241

4342

0 commit comments

Comments
 (0)