-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from shreypandey/main
Added Pre Commit hook
- Loading branch information
Showing
12 changed files
with
210 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.6.9 | ||
hooks: | ||
- id: ruff | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.11.2 | ||
hooks: | ||
- id: mypy | ||
args: ["pylspclient"] | ||
pass_filenames: false | ||
additional_dependencies: [pydantic~=2.5.2] | ||
- repo: local | ||
hooks: | ||
- id: poetry-install | ||
name: Poetry install | ||
entry: poetry install --no-interaction --no-root --with tests | ||
language: system | ||
types: [python] | ||
pass_filenames: false | ||
- id: poetry-pytest | ||
name: Run Tests with Poetry and Pytest | ||
entry: poetry run pytest | ||
language: system | ||
pass_filenames: false | ||
types: [python] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
from typing import Any | ||
__all__: list[Any] = [] | ||
|
||
from pylspclient.json_rpc_endpoint import JsonRpcEndpoint | ||
from pylspclient.lsp_client import LspClient | ||
from pylspclient.lsp_endpoint import LspEndpoint | ||
from pylspclient import lsp_errors | ||
from .json_rpc_endpoint import JsonRpcEndpoint | ||
from .lsp_client import LspClient | ||
from .lsp_endpoint import LspEndpoint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.