Skip to content

Commit f49521d

Browse files
committed
feat: yari deprecated
1 parent 76ca314 commit f49521d

7 files changed

Lines changed: 971 additions & 593 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
14+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1515
steps:
1616
- uses: actions/checkout@v3
1717
- name: Set up Python ${{ matrix.python-version }}

plugins/yls-yara/poetry.lock

Lines changed: 200 additions & 195 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

poetry.lock

Lines changed: 770 additions & 186 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ yls = 'yls.server:main'
5959
python = "^3.8"
6060
pygls = "^1.3.1"
6161
yaramod = "^4.3.0"
62-
yari-py = "^0.2.1"
6362
pluggy = "^1.0.0"
6463

6564
[build-system]

tests/unit/test_debugger.py

Lines changed: 0 additions & 60 deletions
This file was deleted.

yls/debugger.py

Lines changed: 0 additions & 135 deletions
This file was deleted.

yls/plugin_manager_provider.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from yls import hookimpl
1414
from yls import hookspecs
1515
from yls import utils
16-
from yls.debugger import DebuggerProvider
1716
from yls.hookspecs import PluggyRes
1817
from yls.hookspecs import PopupMessage
1918

@@ -81,20 +80,6 @@ def yls_formatting(
8180
def yls_scan_enabled(self) -> bool:
8281
return False
8382

84-
@hookimpl(trylast=True)
85-
def yls_eval(
86-
self, # pylint: disable=unused-argument
87-
ls: Any, # pylint: disable=unused-argument
88-
expr: str,
89-
) -> PluggyRes[str | PopupMessage]:
90-
return DebuggerProvider().instance().eval(expr)
91-
92-
@hookimpl
93-
def yls_eval_set_context(
94-
self, ls: Any, _hash: str, ruleset: str # pylint: disable=unused-argument
95-
) -> PluggyRes[PopupMessage]:
96-
return DebuggerProvider().instance().set_context(ls, _hash, ruleset)
97-
9883
@hookimpl
9984
def yls_eval_enabled(self) -> bool:
10085
return True

0 commit comments

Comments
 (0)