Skip to content

Commit e5e1756

Browse files
committed
Add Ruff
1 parent 3e42a77 commit e5e1756

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ use nix
115115
## Python
116116

117117
- [black](https://github.com/psf/black)
118+
- [ruff](https://github.com/charliermarsh/ruff)
118119
- [isort](https://github.com/PyCQA/isort)
119120
- [pylint](https://github.com/PyCQA/pylint)
120121
- [flake8](https://github.com/PyCQA/flake8)

modules/hooks.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,13 @@ in
349349
entry = "${pkgs.python3Packages.black}/bin/black";
350350
types = [ "file" "python" ];
351351
};
352+
ruff =
353+
{
354+
name = "ruff";
355+
description = " An extremely fast Python linter, written in Rust.";
356+
entry = "${pkgs.python3Packages.black}/bin/ruff";
357+
types = [ "file" "python" ];
358+
};
352359
cabal2nix =
353360
{
354361
name = "cabal2nix";

nix/tools.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ let
5454
};
5555
in
5656
{
57-
inherit actionlint ansible-lint alejandra cabal-fmt cabal2nix cargo clang-tools clippy deadnix dhall editorconfig-checker hadolint hindent hlint hpack html-tidy nixfmt nixpkgs-fmt ormolu rustfmt shellcheck shfmt statix stylish-haskell stylua typos go mdsh revive go-tools yamllint;
57+
inherit actionlint ansible-lint alejandra cabal-fmt cabal2nix cargo clang-tools clippy deadnix dhall editorconfig-checker hadolint hindent hlint hpack html-tidy nixfmt nixpkgs-fmt ormolu rustfmt shellcheck shfmt statix stylish-haskell stylua typos go mdsh revive go-tools yamllint ruff;
5858
inherit (elmPackages) elm-format elm-review elm-test;
5959
# TODO: these two should be statically compiled
6060
inherit (haskellPackages) fourmolu;

0 commit comments

Comments
 (0)