-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevenv.nix
48 lines (45 loc) · 1.07 KB
/
devenv.nix
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
{
pkgs,
lib,
config,
inputs,
...
}: {
packages = [
pkgs.git
pkgs.lazygit
pkgs.act
pkgs.tree-sitter
];
difftastic.enable = true;
languages.javascript.enable = true;
languages.rust.enable = true;
languages.python = {
enable = true;
uv.enable = true;
uv.sync.enable = true;
version = "3.13";
};
pre-commit.hooks = {
shellcheck.enable = true;
ruff.enable = true;
mypy.enable = true;
# mypy.settings.binPath = "${config.env.DEVENV_STATE}/venv/bin/mypy";
ripsecrets.enable = true;
# vale.enable = true;
yamlfmt.enable = true;
actionlint.enable = true;
alejandra.enable = true;
check-added-large-files.enable = true;
check-builtin-literals.enable = true;
check-docstring-first.enable = true;
check-json.enable = true;
check-python.enable = true;
check-shebang-scripts-are-executable.enable = true;
check-symlinks.enable = true;
check-toml.enable = true;
check-vcs-permalinks.enable = true;
# no-commit-to-branch.enable = true;
# reuse.enable = true;
};
}