-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathdevenv.nix
More file actions
70 lines (63 loc) · 1.18 KB
/
devenv.nix
File metadata and controls
70 lines (63 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{ pkgs, lib, config, inputs, ... }:
{
cachix.enable = false;
packages = [
# General dev.
pkgs.git pkgs.openssl
# Rust
pkgs.rustup pkgs.protobuf pkgs.openssl
];
env = {
OPENSSL_DEV = pkgs.openssl.dev;
};
# https://devenv.sh/tasks/
# tasks = {
# "myproj:setup".exec = "mytool build";
# "devenv:enterShell".after = [ "myproj:setup" ];
# };
# https://devenv.sh/tests/
enterTest = ''
cargo test
'';
languages.python = {
enable = true;
venv.enable = true;
venv.requirements = ''
matplotlib
numpy
onnx
psutil
pandas
scikit-learn
tabulate
torch
torchvision
tqdm
'';
};
# https://devenv.sh/git-hooks/
# git-hooks.hooks.shellcheck.enable = true;
git-hooks.hooks = {
# actionlint.enable = true;
check-merge-conflicts.enable = true;
ripsecrets.enable = true;
rustfmt = {
enable = false;
settings.color = "auto";
};
black = {
enable = true;
};
taplo = {
enable = true;
};
typos = {
enable = true;
settings = {
format = "brief";
write = true;
configPath = "typos.toml";
};
};
};
}