Skip to content

Commit 53e7669

Browse files
authored
Merge pull request #227 from shikanime/feat/add-ruff
Add Ruff
2 parents 3e42a77 + ffe6850 commit 53e7669

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-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.ruff}/bin/ruff";
357+
types = [ "python" ];
358+
};
352359
cabal2nix =
353360
{
354361
name = "cabal2nix";

nix/tools.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
, nodePackages
3030
, ormolu
3131
, python39Packages
32+
, ruff
3233
, runCommand
3334
, rustfmt
3435
, shellcheck
@@ -54,7 +55,7 @@ let
5455
};
5556
in
5657
{
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;
58+
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;
5859
inherit (elmPackages) elm-format elm-review elm-test;
5960
# TODO: these two should be statically compiled
6061
inherit (haskellPackages) fourmolu;

0 commit comments

Comments
 (0)