From 3f3851b23617b0d63771c190dfa8b09a126d1e8a Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 15 May 2024 11:59:24 +0100 Subject: [PATCH] python: swap black and flake8 for ruff --- programs/emacs/default.nix | 2 +- programs/python/default.nix | 1 - programs/python/ruff.toml | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/programs/emacs/default.nix b/programs/emacs/default.nix index ad430ce..840d6fd 100644 --- a/programs/emacs/default.nix +++ b/programs/emacs/default.nix @@ -181,7 +181,7 @@ ## Formatters alejandra shfmt - black + ruff isort stylua nodePackages.prettier diff --git a/programs/python/default.nix b/programs/python/default.nix index b22fc50..7928e7b 100644 --- a/programs/python/default.nix +++ b/programs/python/default.nix @@ -9,7 +9,6 @@ (ps: with ps; [ python-lsp-server - flake8 mypy numpy scipy diff --git a/programs/python/ruff.toml b/programs/python/ruff.toml index fa952f6..85b2505 100644 --- a/programs/python/ruff.toml +++ b/programs/python/ruff.toml @@ -33,5 +33,5 @@ ignore = [ ] unfixable = ["W", "B", "PD", "NPY", "RUF", "E101", "E501", "C901", "I001", "I002"] -# [format] -# docstring-code-format = true +[format] +docstring-code-format = true