We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e8fbdb commit 886598fCopy full SHA for 886598f
pyproject.toml
@@ -280,9 +280,20 @@ select = [
280
]
281
extend-select = ["TID"]
282
283
+
284
[tool.ruff.lint.flake8-tidy-imports]
285
banned-module-level-imports = [
286
"duckdb",
287
"numpy",
288
"pandas",
289
290
291
+# Bans imports from sqlmesh.lsp in files outside of sqlmesh/lsp
292
+[tool.ruff.lint.flake8-tidy-imports.banned-api]
293
+"sqlmesh.lsp".msg = "Only files within sqlmesh/lsp can import from sqlmesh.lsp"
294
295
+[tool.ruff.lint.per-file-ignores]
296
+# TID251 is used to ignore the import of sqlmesh.lsp in files outside sqlmesh/lsp
297
+"sqlmesh/lsp/**/*.py" = ["TID251"]
298
+"tests/lsp/**/*.py" = ["TID251"]
299
+"benchmarks/lsp*.py" = ["TID251"]
0 commit comments