From 88d855a951a36cb942eb25aaa0b2f22bfb420d28 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Wed, 30 Aug 2023 00:02:17 +0200 Subject: [PATCH] Add devshell with `ruff` and `black` --- flake.nix | 10 ++++++++++ pyproject.toml | 9 ++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 1e63721..499a8de 100644 --- a/flake.nix +++ b/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 + ]; + }; + }; }) // diff --git a/pyproject.toml b/pyproject.toml index 99098ed..0de40ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,4 +25,11 @@ dynamic = ["version"] include = ["dibbler*"] [project.scripts] -dibbler = "dibbler.main:main" \ No newline at end of file +dibbler = "dibbler.main:main" + +[tool.black] +line-length = 100 + +[tool.ruff] +line-length = 100 +