diff --git a/README.md b/README.md index ac29a2d8..dfcdb3fb 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,7 @@ use nix ## Python - [black](https://github.com/psf/black) +- [ruff](https://github.com/charliermarsh/ruff) - [isort](https://github.com/PyCQA/isort) - [pylint](https://github.com/PyCQA/pylint) - [flake8](https://github.com/PyCQA/flake8) diff --git a/modules/hooks.nix b/modules/hooks.nix index d9458bbf..3369971f 100644 --- a/modules/hooks.nix +++ b/modules/hooks.nix @@ -349,6 +349,13 @@ in entry = "${pkgs.python3Packages.black}/bin/black"; types = [ "file" "python" ]; }; + ruff = + { + name = "ruff"; + description = " An extremely fast Python linter, written in Rust."; + entry = "${pkgs.ruff}/bin/ruff"; + types = [ "python" ]; + }; cabal2nix = { name = "cabal2nix"; diff --git a/nix/tools.nix b/nix/tools.nix index f8a872a1..9e0987e3 100644 --- a/nix/tools.nix +++ b/nix/tools.nix @@ -29,6 +29,7 @@ , nodePackages , ormolu , python39Packages +, ruff , runCommand , rustfmt , shellcheck @@ -54,7 +55,7 @@ let }; in { - 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; + 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; inherit (elmPackages) elm-format elm-review elm-test; # TODO: these two should be statically compiled inherit (haskellPackages) fourmolu;