Skip to content

Commit 206b176

Browse files
committed
Add .pre-commit-hooks.yaml (#83)
1 parent a8ebd28 commit 206b176

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.pre-commit-hooks.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
- id: sourcery
2+
name: sourcery
3+
description: Magically refactor Python
4+
language: python
5+
additional_dependencies: [sourcery-cli==0.8.0]
6+
entry: sourcery refactor --check
7+
require_serial: true
8+
types: [python]

WritingAnLSPClient.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Verifying refactoring functionality - success
2020
```
2121

2222
## Startup and Initialisation
23-
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`.
23+
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`.
2424

2525
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.
2626

pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[project]
2+
name = "sourcery"
3+
version = "0.8.0"
4+
description = "Magically refactor Python"

0 commit comments

Comments
 (0)