Add devshell with ruff
and black
This commit is contained in:
parent
ea1be3be7f
commit
88d855a951
10
flake.nix
10
flake.nix
@ -20,6 +20,16 @@
|
||||
drv = self.packages.${system}.dibbler;
|
||||
};
|
||||
};
|
||||
|
||||
devShells = {
|
||||
default = self.devShells.${system}.dibbler;
|
||||
dibbler = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
python311Packages.black
|
||||
ruff
|
||||
];
|
||||
};
|
||||
};
|
||||
})
|
||||
|
||||
//
|
||||
|
@ -25,4 +25,11 @@ dynamic = ["version"]
|
||||
include = ["dibbler*"]
|
||||
|
||||
[project.scripts]
|
||||
dibbler = "dibbler.main:main"
|
||||
dibbler = "dibbler.main:main"
|
||||
|
||||
[tool.black]
|
||||
line-length = 100
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 100
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user