Update hover.py to use language server argument#455
Conversation
|
Thanks for this! I see no issue with the code, but the CI lint job is failing due to the formatting of the commit message. Would you be able to edit it to be something like |
|
Sure. Do you have something like pre-commit to enforce these kind of checking? I didn't know this is a requirement since it's not mentioned in https://github.com/openlawlibrary/pygls/blob/main/CONTRIBUTING.md. |
|
Sorry about that. We hadn't updated that doc in a while. I made a PR to mention the commit message convention: #456 |
|
No worries! I've fixed the commit message now and the checks are all passed. |
|
@tombh would you be open to adding a pre-commit config to repo (and possibly even using the ci version? I'll admit not running the lint job locally always catches me out 😅 |
|
I don't mind adding the precommit config if this is wanted |
|
I'm personally not a fan of local commit hooks. I'm a big advocate of linear history, so a lot of quick I'm interested in hearing arguments for pre-commits. What about adding a line in |
FWIW, I rebase quite often, and I'm yet to have a major issue caused by a pre-commit hook. We certainly don't have to go as far as putting pre-commit.ci in place, but what about the pre-commit config file so that there was the option for people to opt into the hooks locally?
Sure, it wouldn't hurt :) |
|
I think the commit message lint has to run after writing the commit message right? Anyway, yes, we can definitely use pre-commit.ci and have it opt-in, I'm totally up for that. Made a PR for that PULL_REQUEST_TEMPLATE update #460 |
Description (e.g. "Related to ...", etc.)
Following the best practice guide from "passing language server instance as parameter"
https://pygls.readthedocs.io/en/latest/pages/user-guide.html#passing-language-server-instance
Code review checklist (for code reviewer to complete)