Skip to content

Commit

Permalink
Bump minimum Ruff version (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Jun 15, 2023
1 parent 1957223 commit 972444d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 17 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ urls = { repository = "https://github.com/astral-sh/ruff-lsp" }
dependencies = [
"pygls>=1.0.1",
"lsprotocol>=2023.0.0a1",
"ruff>=0.0.267",
"ruff>=0.0.272",
"typing_extensions",
]

Expand Down
5 changes: 3 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ mypy-extensions==1.0.0
# mypy
packaging==23.1
# via
# black
# build
# pytest
pathspec==0.11.1
Expand All @@ -62,7 +63,7 @@ pytest==7.3.2
# via ruff-lsp (pyproject.toml)
python-lsp-jsonrpc==1.0.0
# via ruff-lsp (pyproject.toml)
ruff==0.0.270
ruff==0.0.272
# via ruff-lsp (pyproject.toml)
tomli==2.0.1
# via
Expand All @@ -75,7 +76,7 @@ typed-ast==1.5.4
# via
# black
# mypy
typeguard==4.0.0
typeguard==3.0.2
# via pygls
typing-extensions==4.6.3
# via
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ lsprotocol==2023.0.0a1
# ruff-lsp (pyproject.toml)
pygls==1.0.2
# via ruff-lsp (pyproject.toml)
ruff==0.0.270
ruff==0.0.272
# via ruff-lsp (pyproject.toml)
typeguard==4.0.0
typeguard==3.0.2
# via pygls
typing-extensions==4.6.3
# via
Expand Down
12 changes: 2 additions & 10 deletions tests/test_format.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
"""Unfortunately, I couldn't figure out how to integrate custom commands with the LSP
test harness, so here's a mixture of a unit and an integration test"""

from __future__ import annotations

from pathlib import Path
Expand All @@ -17,15 +14,10 @@
from tests.client import utils

original = """
print("a")
# DEL
print("b")
x = 1
"""

expected = """
print("a")
print("b")
expected = """NOT_YET_IMPLEMENTED_StmtAssign
"""


Expand Down
4 changes: 2 additions & 2 deletions tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _handler(params):
"code": "F401",
"data": {
"fix": {
"applicability": "Unspecified",
"applicability": "Automatic",
"edits": [
{
"content": "",
Expand Down Expand Up @@ -144,7 +144,7 @@ def _handler(params):
"code": "F401",
"data": {
"fix": {
"applicability": "Unspecified",
"applicability": "Automatic",
"edits": [
{
"content": "",
Expand Down

0 comments on commit 972444d

Please sign in to comment.