Skip to content

Commit

Permalink
Add .pre-commit-hooks.yaml (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanator committed Oct 7, 2020
1 parent a8ebd28 commit 206b176
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- id: sourcery
name: sourcery
description: Magically refactor Python
language: python
additional_dependencies: [sourcery-cli==0.8.0]
entry: sourcery refactor --check
require_serial: true
types: [python]
2 changes: 1 addition & 1 deletion WritingAnLSPClient.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Verifying refactoring functionality - success
```

## Startup and Initialisation
The client communicates with The Sourcery Language Server through standard input and output. To run the Sourcery Language Server execute `path_to_binary/sourcery --lsp`.
The client communicates with The Sourcery Language Server through standard input and output. To run the Sourcery Language Server execute `path_to_binary/sourcery lsp`.

The Sourcery Server is initialised with the standard [LSP initialize request](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#initialize). It requires the `initializationOptions` param to be populated as shown below and will respond with the list of ServerCapabilities that it supports.

Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[project]
name = "sourcery"
version = "0.8.0"
description = "Magically refactor Python"

0 comments on commit 206b176

Please sign in to comment.