Skip to content

Commit

Permalink
Adding base pyright and ruff modules
Browse files Browse the repository at this point in the history
  • Loading branch information
blast-hardcheese committed Sep 18, 2024
1 parent 7fff4a3 commit a096fea
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ let
(import ./python-with-prybar)

(import ./pyright-extended)
(import ./pyright)
(import ./ruff)

(import ./nodejs {
nodejs = pkgs.nodejs-18_x;
Expand Down
15 changes: 15 additions & 0 deletions pkgs/modules/pyright/default.nix
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";
};
}
17 changes: 17 additions & 0 deletions pkgs/modules/ruff/default.nix
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";
};
}

0 comments on commit a096fea

Please sign in to comment.