Add devshell with `ruff` and `black`

This commit is contained in:
Oystein Kristoffer Tveit 2023-08-30 00:02:17 +02:00
parent ea1be3be7f
commit 88d855a951
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
2 changed files with 18 additions and 1 deletions

View File

@ -20,6 +20,16 @@
drv = self.packages.${system}.dibbler; drv = self.packages.${system}.dibbler;
}; };
}; };
devShells = {
default = self.devShells.${system}.dibbler;
dibbler = pkgs.mkShell {
packages = with pkgs; [
python311Packages.black
ruff
];
};
};
}) })
// //

View File

@ -26,3 +26,10 @@ include = ["dibbler*"]
[project.scripts] [project.scripts]
dibbler = "dibbler.main:main" dibbler = "dibbler.main:main"
[tool.black]
line-length = 100
[tool.ruff]
line-length = 100