Skip to content

Commit 22aa9c2

Browse files
committed
update
1 parent ab97e0d commit 22aa9c2

File tree

5 files changed

+11
-46
lines changed

5 files changed

+11
-46
lines changed

.github/workflows/python-test.yml

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

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Mypy plugin for PYLS
22
======================
33

4-
.. image:: https://badge.fury.io/py/pyls-mypy.svg
5-
:target: https://badge.fury.io/py/pyls-mypy
4+
.. image:: https://badge.fury.io/py/mypy-ls.svg
5+
:target: https://badge.fury.io/py/mypy-ls
66

7-
.. image:: https://travis-ci.org/tomv564/pyls-mypy.svg?branch=master
8-
:target: https://travis-ci.org/tomv564/pyls-mypy
7+
.. image:: https://github.com/Richardk2n/pyls-mypy/workflows/Python%20package/badge.svg?branch=master
8+
:target: https://github.com/Richardk2n/pyls-mypy/
99

1010
This is a plugin for the Palantir's Python Language Server (https://github.com/palantir/python-language-server)
1111

pyls_mypy/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.2.0"
1+
__version__ = "0.2.1"

pyls_mypy/plugin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from pyls import hookimpl
88
from sys import platform
99

10-
line_pattern = r"([^:]+):(?:(\d+):)?(?:(\d+):)? (\w+): (.*)"
10+
line_pattern = r"((?:^[a-z]:)[^:]+):(?:(\d+):)?(?:(\d+):)? (\w+): (.*)"
1111

1212
log = logging.getLogger(__name__)
1313

@@ -61,7 +61,8 @@ def pyls_lint(config, workspace, document, is_saved):
6161
settings = config.plugin_settings('pyls_mypy')
6262
live_mode = settings.get('live_mode', True)
6363
path = document.path
64-
while (loc:=path.rfind("\\"))>-1:
64+
loc:=path.rfind("\\")
65+
while (loc)>-1:
6566
p = path[:loc+1]+"mypy.ini"
6667
if os.path.isfile(p):
6768
break

setup.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[metadata]
2-
name = pyls-mypy
2+
name = mypy-ls
33
author = Tom van Ommeren, Richard Kellnberger
44
description = Mypy linter for the Python Language Server
55
url = https://github.com/Richardk2n/pyls-mypy
66
long_description = file: README.rst
77
license='MIT'
88
classifiers =
9-
Development Status :: 3 - Alpha
9+
Development Status :: 4 - Beta
1010
Intended Audience :: Developers
1111
Topic :: Software Development
1212
License :: OSI Approved :: MIT License
@@ -22,7 +22,7 @@ classifiers =
2222
python_requires = >= 3.2
2323
packages = find:
2424
install_requires =
25-
python-language-server = <= 0.32.0
25+
python-language-server<0.32.0
2626
mypy
2727

2828

0 commit comments

Comments
 (0)