Skip to content

Commit

Permalink
Update ruff configuration to ruff 0.2 (astral-sh#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser authored Feb 5, 2024
1 parent d7f8b43 commit 4c23bcb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ path = "ruff_lsp/__init__.py"

[tool.ruff]
line-length = 88
target-version = "py37"

[tool.ruff.lint]
select = [
"E",
"F",
Expand All @@ -70,7 +73,6 @@ select = [
"T201",
"T203",
]
target-version = "py37"

[tool.mypy]
files = ["ruff_lsp", "tests"]
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def _get_ruff_executable() -> Executable:
# Use the ruff-lsp directory as the workspace
workspace_path = str(Path(__file__).parent.parent)

settings = WorkspaceSettings(
**_get_global_defaults(), # type: ignore[misc]
settings = WorkspaceSettings( # type: ignore[misc]
**_get_global_defaults(),
cwd=None,
workspacePath=workspace_path,
workspace=uris.from_fs_path(workspace_path),
Expand Down

0 comments on commit 4c23bcb

Please sign in to comment.