Skip to content

Depend on python-lsp-server - #2

Merged
Richardk2n merged 5 commits into
python-lsp:masterfrom
haplo:python-lsp-server-mypy-ls
May 18, 2021
Merged

Richardk2n merged 5 commits into
python-lsp:masterfrom
haplo:python-lsp-server-mypy-ls

Conversation

@haplo

@haplo haplo commented May 18, 2021 •

Copy link
Copy Markdown

Palantir's python-language-server is now unmaintained. python-lsp-server is a community-maintained fork.

See tomv564#51 for a discussion.

Palantir's python-language-server is now unmaintained.
python-lsp-server is a community-maintained fork.
Comment thread requirements.txt Outdated
python-language-server>=0.34.0
mypy
future;python_version < '3'
flake8

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where do the additional requirements come from?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I think they came from the old pyls-mypy branch I based my changes on (see tomv564#52). I will fix it.

Comment thread mypy_ls/plugin.py Outdated
):
global tmpFile
tmpFile = tempfile.NamedTemporaryFile('w', delete=False)
tmpFile = tempfile.NamedTemporaryFile("w", delete=False)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't realize that my editor automatically blackens all Python files, I didn't mean to push these changes. I will revert them.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some uniform formatting would probably be good and I did a very poor job in that regard. Therefore, this is fine with me.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh well I already pushed a revert. If you are OK with formatting with black I will open an issue and do it properly, with a pre-commit hook probably.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be nice

Comment thread README.rst Outdated
"enabled": True,
"live_mode": True,
"strict": False
"enabled": True,

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was my editor replacing the tabs with spaces, sorry about that.

@Richardk2n

Copy link
Copy Markdown
Member

@haplo Do you want to include any other changes in this PR? Otherwise this looks fine.

@haplo

haplo commented May 18, 2021

Copy link
Copy Markdown
Author

@haplo Do you want to include any other changes in this PR? Otherwise this looks fine.

I would keep this to the minimum to make it compatible with python-lsp-server. We can open separate issues for other changes.

Feel free to squash merge.

@Richardk2n
Richardk2n merged commit 4b968d3 into python-lsp:master May 18, 2021
@haplo
haplo deleted the python-lsp-server-mypy-ls branch May 18, 2021 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants