Skip to content

Commit

Permalink
Add isort
Browse files Browse the repository at this point in the history
  • Loading branch information
lunik1 committed Nov 3, 2021
1 parent 06fa803 commit 8467d19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ eval "$shellHook"
## Python

- [black](https://github.com/psf/black)
- [isort](https://github.com/PyCQA/isort)

## Rust

Expand Down
7 changes: 7 additions & 0 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ in
entry = "${tools.hpack-dir}/bin/hpack-dir --${if settings.hpack.silent then "silent" else "verbose"}";
files = "(\\.l?hs$)|(^[^/]+\\.cabal$)|(^package\\.yaml$)";
};
isort =
{
name = "isort";
description = "A Python utility / library to sort imports.";
entry = "${pkgs.python3Packages.isort}/bin/isort";
types = [ "file" "python" ];
};
ormolu =
{
name = "ormolu";
Expand Down

0 comments on commit 8467d19

Please sign in to comment.