diff --git a/.github/actions/lint/action.yml b/.github/actions/lint/action.yml index 60d396e353f3..9992b442c276 100644 --- a/.github/actions/lint/action.yml +++ b/.github/actions/lint/action.yml @@ -43,7 +43,7 @@ runs: - name: Run Ruff run: | - python -m pip install -U "ruff<0.8.0" + python -m pip install -U "ruff" python -m ruff check . python -m ruff format --check working-directory: python_files diff --git a/python_files/pyproject.toml b/python_files/pyproject.toml index afb9d372285c..7fb5e18339cb 100644 --- a/python_files/pyproject.toml +++ b/python_files/pyproject.toml @@ -23,6 +23,7 @@ ignore = [ [tool.ruff] line-length = 100 +target-version = "py38" exclude = [ "**/.data", "lib", diff --git a/python_files/visualstudio_py_testlauncher.py b/python_files/visualstudio_py_testlauncher.py index 575f9d4fefc2..878491083a71 100644 --- a/python_files/visualstudio_py_testlauncher.py +++ b/python_files/visualstudio_py_testlauncher.py @@ -130,7 +130,7 @@ def send_event(self, name, **args): body = {"type": "event", "seq": self.seq, "event": name, "body": args} self.seq += 1 content = json.dumps(body).encode("utf8") - headers = ("Content-Length: %d\n\n" % (len(content),)).encode("utf8") + headers = f"Content-Length: {len(content)}\n\n".encode() self.socket.send(headers) self.socket.send(content)