Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
2024-07-27 18:14:12 +02:00
parent b306ecd228
commit d3055a9e8b
5 changed files with 73 additions and 38 deletions

View File

@@ -1,10 +1,24 @@
{ pkgs, lib, config, inputs, ... }:
{
pkgs,
lib,
config,
inputs,
...
}:
let req = pkgs.concatText "req" [ ./requirements.txt ./requirements-dev.txt ];
in {
let
req = pkgs.concatText "req" [
./requirements.txt
./requirements-dev.txt
];
in
{
# https://devenv.sh/packages/
packages = [ pkgs.file pkgs.swig4 pkgs.openssl ];
packages = [
pkgs.file
pkgs.swig4
pkgs.openssl
];
# https://devenv.sh/languages/
languages.nix.enable = true;
@@ -19,6 +33,7 @@ in {
# https://devenv.sh/pre-commit-hooks/
pre-commit.hooks = {
nixfmt.enable = true;
nixfmt.package = pkgs.nixfmt-rfc-style;
# remove unused imports
autoflake.enable = true;
# formatter
@@ -31,6 +46,5 @@ in {
pylint.enable = true;
detect-private-keys.enable = true;
detect-private-keys.excludes = [ "tests/" ];
};
}