-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding base pyright and ruff modules
- Loading branch information
1 parent
7fff4a3
commit a096fea
Showing
3 changed files
with
34 additions
and
0 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
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,15 @@ | ||
{ pkgs, lib, ... }: | ||
{ | ||
id = "pyright"; | ||
name = "pyright LSP"; | ||
displayVersion = pkgs.pyright.version; | ||
description = '' | ||
Pyright is a full-featured, standards-based static type checker for Python. It is designed for high performance and can be used with large Python source bases. | ||
''; | ||
replit.dev.languageServers.pyright = { | ||
name = "pyright"; | ||
displayVersion = pkgs.pyright.version; | ||
language = "python3"; | ||
start = "${pkgs.pyright}/bin/langserver.index.js --stdio"; | ||
}; | ||
} |
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,17 @@ | ||
{ pkgs, lib, ... }: | ||
{ | ||
id = "ruff"; | ||
name = "ruff LSP"; | ||
displayVersion = pkgs.ruff.version; | ||
description = '' | ||
A Language Server Protocol implementation for Ruff, an extremely fast Python linter and code formatter, written in Rust. | ||
Ruff can be used to replace Flake8 (plus dozens of plugins), Black, isort, pyupgrade, and more, all while executing tens or hundreds of times faster than any individual tool. | ||
''; | ||
replit.dev.languageServers.ruff = { | ||
name = "ruff"; | ||
displayVersion = pkgs.ruff.version; | ||
language = "python3"; | ||
start = "${pkgs.ruff}/bin/ruff server"; | ||
}; | ||
} |