nix: migrate to 'ruff'
Having just the one tool is better. Incidentally, this fixes the ternary formatting, which was messed up in recent `black` versions.
This commit is contained in:
parent
f9fc9fbd6b
commit
741bb33544
8 changed files with 20 additions and 17 deletions
19
flake.nix
19
flake.nix
|
|
@ -39,17 +39,17 @@
|
|||
src = self;
|
||||
|
||||
hooks = {
|
||||
black = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
isort = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
nixpkgs-fmt = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
ruff = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
ruff-format = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -57,12 +57,11 @@
|
|||
devShell = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
(python3.withPackages (ps: with ps; [
|
||||
black
|
||||
isort
|
||||
mypy
|
||||
z3
|
||||
]))
|
||||
pyright
|
||||
ruff
|
||||
];
|
||||
|
||||
inherit (self.checks.${system}.pre-commit) shellHook;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue