Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pylint test without pylsp installed #88

Merged
merged 1 commit into from
Sep 20, 2021

Conversation

jspricke
Copy link
Contributor

In case pylsp is not installed, the pylint plugin is not found in
Config.init and Config._plugin_settings is empty. This is
fine except test_pylint_lint.test_pylint tries to set the pylint
executable in the settings. This patch works around this by patching in
the config.

@ccordoba12
Copy link
Member

Hey @jspricke, thanks for your contribution. Could you explain why is this neccesary? I mean, how are you testing this package?

@jspricke
Copy link
Contributor Author

Hi @ccordoba12, this is necessary to have the test pass in Debian: https://buildd.debian.org/status/fetch.php?pkg=python-lsp-server&arch=all&ver=1.2.2-2&stamp=1632064450&raw=0 where we run the tests after the build and before installing the app.

In case pylsp is not installed, the pylint plugin is not found in
Config.__init__ and Config._plugin_settings is empty. This is
fine except test_pylint_lint.test_pylint tries to set the pylint
executable in the settings. This patch works around this by patching in
the config.
@ccordoba12 ccordoba12 added this to the v1.2.3 milestone Sep 20, 2021
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

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

Thanks @jspricke!

@ccordoba12 ccordoba12 merged commit a62f0a1 into python-lsp:develop Sep 20, 2021
@jspricke jspricke deleted the fix_pylint branch September 20, 2021 15:56
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