Skip to content

Commit 30571e3

Browse files
committed
Use get_eol_chars utility function added to python-lsp-server 1.4.0
Also drop support for Python 3.6 because that version of python-lsp-server only supports 3.7+
1 parent 0c82bf8 commit 30571e3

File tree

4 files changed

+4
-16
lines changed

4 files changed

+4
-16
lines changed

.github/workflows/python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]
14+
python-version: [3.7, 3.8, 3.9, "3.10"]
1515
steps:
1616
- uses: actions/checkout@v2
1717
- name: Set up Python ${{ matrix.python-version }}

pylsp_black/_utils.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

pylsp_black/plugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
import black
77
import toml
88
from pylsp import hookimpl
9-
10-
from pylsp_black._utils import get_eol_chars
9+
from pylsp._utils import get_eol_chars
1110

1211
logger = logging.getLogger(__name__)
1312

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ classifiers =
1818

1919
[options]
2020
packages = find:
21-
install_requires = python-lsp-server; black>=19.3b0; toml
22-
python_requires = >= 3.6
21+
install_requires = python-lsp-server>=1.4.0; black>=19.3b0; toml
22+
python_requires = >= 3.7
2323

2424
[options.entry_points]
2525
pylsp = pylsp_black = pylsp_black.plugin

0 commit comments

Comments
 (0)