mirror of
https://seed.flo-the.dev/z3gWc1qgaeZaoGwL4WTstLNoqjayM.git
synced 2025-12-06 04:47:35 +01:00
26
devenv.nix
26
devenv.nix
@@ -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/" ];
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user