File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -216,5 +216,6 @@ ignore_missing_imports = true
216216
217217[tool .ruff .lint ]
218218select = [
219- " RET505" ,
219+ " F401" ,
220+ " RET505" ,
220221]
Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3- import typing as t
43
54from sqlmesh .core .config .base import BaseConfig
65
Original file line number Diff line number Diff line change 77from sqlmesh .core .model import Model
88
99from sqlmesh .utils .errors import raise_config_error
10- from sqlmesh .core .console import LinterConsole , get_console , Console
10+ from sqlmesh .core .console import LinterConsole , get_console
1111from sqlmesh .core .linter .rule import RuleSet
1212
1313
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22"""A Language Server Protocol (LSP) server for SQL with SQLMesh integration, refactored without globals."""
33
4- import itertools
54import logging
65import typing as t
7- from contextlib import suppress
86from pathlib import Path
97
108from lsprotocol import types
119from pygls .server import LanguageServer
1210from pygls .workspace import TextDocument
1311
1412from sqlmesh ._version import __version__
15- from sqlmesh .core .audit .definition import ModelAudit
1613from sqlmesh .core .context import Context
17- from sqlmesh .core .model import Model
1814
1915
2016class SQLMeshLanguageServer :
Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3- import traceback
43import typing as t
54from enum import auto
65from pathlib import Path
You can’t perform that action at this time.
0 commit comments