Skip to content

Commit d765a5f

Browse files
committed
rename
1 parent 0b80495 commit d765a5f

File tree

9 files changed

+16
-17
lines changed

9 files changed

+16
-17
lines changed

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
include README.rst
2-
include mypy_ls/_version.py

README.rst

Lines changed: 6 additions & 6 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/mypy-ls.svg
5-
:target: https://badge.fury.io/py/mypy-ls
4+
.. image:: https://badge.fury.io/py/pylsp-mypy.svg
5+
:target: https://badge.fury.io/py/pylsp-mypy
66

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

1010
This is a plugin for the `Python LSP Server`_.
1111

@@ -19,7 +19,7 @@ Installation
1919

2020
Install into the same virtualenv as python-lsp-server itself.
2121

22-
``pip install mypy-ls``
22+
``pip install pylsp-mypy``
2323

2424
Configuration
2525
-------------
@@ -33,7 +33,7 @@ Configuration
3333
``strict`` (default is False) refers to the ``strict`` option of ``mypy``.
3434
This option often is too strict to be useful.
3535

36-
Depending on your editor, the configuration (found in a file called mypy-ls.cfg in your workspace or a parent directory) should be roughly like this for a standard configuration:
36+
Depending on your editor, the configuration (found in a file called pylsp-mypy.cfg or in your workspace or a parent directory) should be roughly like this for a standard configuration:
3737

3838
::
3939

mypy_ls/_version.py

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

pylsp_mypy/_version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "0.5.0"

mypy_ls/plugin.py renamed to pylsp_mypy/plugin.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""
3-
File that contains the python-lsp-server plugin mypy-ls.
3+
File that contains the python-lsp-server plugin pylsp-mypy.
44
55
Created on Fri Jul 10 09:53:57 2020
66
@@ -122,7 +122,7 @@ def pylsp_lint(
122122
List of the linting data.
123123
124124
"""
125-
settings = config.plugin_settings("mypy-ls")
125+
settings = config.plugin_settings("pylsp_mypy")
126126
log.info(
127127
"lint settings = %s document.path = %s is_saved = %s",
128128
settings,
@@ -199,7 +199,7 @@ def pylsp_lint(
199199
if diag:
200200
diagnostics.append(diag)
201201

202-
log.info("mypy-ls len(diagnostics) = %s", len(diagnostics))
202+
log.info("pylsp-mypy len(diagnostics) = %s", len(diagnostics))
203203

204204
last_diagnostics[document.path] = diagnostics
205205
return diagnostics
@@ -222,7 +222,7 @@ def pylsp_settings(config: Config) -> Dict[str, Dict[str, Dict[str, str]]]:
222222
223223
"""
224224
configuration = init(config._root_path)
225-
return {"plugins": {"mypy-ls": configuration}}
225+
return {"plugins": {"pylsp_mypy": configuration}}
226226

227227

228228
def init(workspace: str) -> Dict[str, str]:
@@ -245,7 +245,7 @@ def init(workspace: str) -> Dict[str, str]:
245245
workspace = workspace.replace("\\", "/")
246246

247247
configuration = {}
248-
path = findConfigFile(workspace, "mypy-ls.cfg")
248+
path = findConfigFile(workspace, "pylsp-mypy.cfg")
249249
if path:
250250
with open(path) as file:
251251
configuration = eval(file.read())

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[metadata]
2-
name = mypy-ls
2+
name = pylsp-mypy
33
author = Tom van Ommeren, Richard Kellnberger
44
description = Mypy linter for the Python LSP Server
55
url = https://github.com/Richardk2n/pyls-mypy
@@ -24,7 +24,7 @@ install_requires =
2424

2525

2626
[options.entry_points]
27-
pylsp = mypy_ls = mypy_ls.plugin
27+
pylsp = pylsp_mypy = pylsp_mypy.plugin
2828

2929
[options.extras_require]
3030
test =

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22
from setuptools import setup
3-
from mypy_ls import _version
3+
from pylsp_mypy import _version
44

55
if __name__ == "__main__":
66
setup(version=_version.__version__, long_description_content_type="text/x-rst")

test/test_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def plugin_settings(self, plugin, document_path=None):
3535
def test_settings():
3636
config = FakeConfig()
3737
settings = plugin.pylsp_settings(config)
38-
assert settings == {"plugins": {"mypy-ls": {}}}
38+
assert settings == {"plugins": {"pylsp_mypy": {}}}
3939

4040

4141
def test_plugin(workspace):

0 commit comments

Comments
 (0)