Skip to content

Commit d1beef6

Browse files
authored
chore: remove unused imports (#4161)
1 parent bbdd501 commit d1beef6

5 files changed

Lines changed: 3 additions & 8 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,5 +216,6 @@ ignore_missing_imports = true
216216

217217
[tool.ruff.lint]
218218
select = [
219-
"RET505",
219+
"F401",
220+
"RET505",
220221
]

sqlmesh/core/config/janitor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
22

3-
import typing as t
43

54
from sqlmesh.core.config.base import BaseConfig
65

sqlmesh/core/linter/definition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from sqlmesh.core.model import Model
88

99
from 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
1111
from sqlmesh.core.linter.rule import RuleSet
1212

1313

sqlmesh/lsp/main.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
#!/usr/bin/env python
22
"""A Language Server Protocol (LSP) server for SQL with SQLMesh integration, refactored without globals."""
33

4-
import itertools
54
import logging
65
import typing as t
7-
from contextlib import suppress
86
from pathlib import Path
97

108
from lsprotocol import types
119
from pygls.server import LanguageServer
1210
from pygls.workspace import TextDocument
1311

1412
from sqlmesh._version import __version__
15-
from sqlmesh.core.audit.definition import ModelAudit
1613
from sqlmesh.core.context import Context
17-
from sqlmesh.core.model import Model
1814

1915

2016
class SQLMeshLanguageServer:

sqlmesh/utils/errors.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
22

3-
import traceback
43
import typing as t
54
from enum import auto
65
from pathlib import Path

0 commit comments

Comments
 (0)