Skip to content

Commit

Permalink
languages python: modernise config
Browse files Browse the repository at this point in the history
  • Loading branch information
denbeigh2000 committed Apr 20, 2024
1 parent 80c1fc4 commit 48b466b
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions modules/languages/python.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, ... }:
{ lib, pkgs, ... }:

let
inherit (lib) mkDefault;
Expand All @@ -9,14 +9,20 @@ in
lsp.servers.pylsp = {
enable = mkDefault true;
settings.plugins = {
autopep8.enabled = mkDefault false;
black.enabled = mkDefault true;
flake8.enabled = mkDefault false;
isort.enabled = mkDefault true;
ruff.enabled = mkDefault true;
pycodestyle.enabled = mkDefault true;
# pyflakes.enabled = mkDefault true;
pycodestyle.enabled = mkDefault false;
pyflakes.enabled = mkDefault false;
pylsp_mypy = {
enabled = mkDefault true;
dmypy = mkDefault true;
};
ruff = {
enabled = mkDefault true;
executable = mkDefault "${pkgs.ruff}/bin/ruff";
lineLength = mkDefault 88;
ignore = mkDefault [ "E501" ];
};
};
};
Expand Down

0 comments on commit 48b466b

Please sign in to comment.