Skip to content

Commit 1c05233

Browse files
committed
Ran ruff format
1 parent 12aafe6 commit 1c05233

File tree

6 files changed

+10
-4
lines changed

6 files changed

+10
-4
lines changed

Diff for: pylsp/_utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ def escape_plain_text(contents: str) -> str:
175175
"""
176176
Format plain text to display nicely in environments which do not respect whitespaces.
177177
"""
178-
contents = contents.replace("\t", "\u00A0" * 4)
179-
contents = contents.replace(" ", "\u00A0" * 2)
178+
contents = contents.replace("\t", "\u00a0" * 4)
179+
contents = contents.replace(" ", "\u00a0" * 2)
180180
return contents
181181

182182

Diff for: pylsp/plugins/flake8_lint.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Copyright 2021- Python Language Server Contributors.
33

44
"""Linter pluging for flake8"""
5+
56
import logging
67
import os.path
78
import re

Diff for: pylsp/plugins/pylint_lint.py

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Copyright 2021- Python Language Server Contributors.
44

55
"""Linter plugin for pylint."""
6+
67
import collections
78
import logging
89
import os

Diff for: pylsp/uris.py

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
66
https://github.com/Microsoft/vscode-uri/blob/e59cab84f5df6265aed18ae5f43552d3eef13bb9/lib/index.ts
77
"""
8+
89
import re
910
from urllib import parse
1011

Diff for: pylsp/workspace.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,9 @@ def get_enviroment(self, environment_path=None, env_vars=None):
570570

571571
return environment
572572

573-
def sys_path(self, environment_path=None, env_vars=None, prioritize=False, extra_paths=[]):
573+
def sys_path(
574+
self, environment_path=None, env_vars=None, prioritize=False, extra_paths=[]
575+
):
574576
# Copy our extra sys path
575577
path = list(self._extra_sys_path)
576578
environment = self.get_enviroment(

Diff for: test/conftest.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Copyright 2017-2020 Palantir Technologies, Inc.
22
# Copyright 2021- Python Language Server Contributors.
33

4-
""" py.test configuration"""
4+
"""py.test configuration"""
5+
56
import logging
67

78
from pylsp.__main__ import LOG_FORMAT

0 commit comments

Comments
 (0)