-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.mise.toml
More file actions
84 lines (66 loc) · 2.68 KB
/
Copy path.mise.toml
File metadata and controls
84 lines (66 loc) · 2.68 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
[env]
_.path = ["./bin"]
_.file = ".env"
BUNDLE_PATH = "vendor/bundle"
[shell_alias]
dfr = "./bin/dotf run"
[tools]
hk = "latest"
"github:aldanial/cloc" = "latest"
[deps.bundler]
auto = true
[deps.hk]
sources = ["hk.pkl"]
outputs = [".git/hooks/pre-commit"]
run = "hk install"
[tasks.setup]
description = "Install project dependencies and git hooks"
run = "mise deps"
[tasks."lint:standard"]
description = "Run standardrb"
sources = ["**/*.rb", ".standard.yml"]
run = "bundle exec standardrb"
[tasks."lint:complexity"]
description = "Run Ruby complexity checks"
sources = ["**/*.rb", ".rubocop-custom.yml"]
run = "bundle exec rubocop --config .rubocop-custom.yml --only Metrics/PerceivedComplexity"
[tasks."lint:large-files"]
description = "Check staged files for large files"
sources = [".git/index", "files/home/.claude/skills/dev-env-setup/scripts/check_large_files.rb"]
run = "ruby files/home/.claude/skills/dev-env-setup/scripts/check_large_files.rb"
[tasks."lint:human-only"]
description = "Check staged files for human-only paths"
sources = [".git/index", "tools/check_human_only_files.rb"]
run = "ruby tools/check_human_only_files.rb"
[tasks."lint:secrets"]
description = "Scan working tree for hardcoded secrets"
run = "gitleaks dir --redact=75 --no-banner --no-color --max-target-megabytes 5 --config files/home/.claude/skills/dev-env-setup/scripts/check-dev-env/gitleaks-default.toml ."
[tasks."lint:dead-code"]
description = "Check for dead Ruby methods"
sources = ["**/*.rb", "**/*.rake", "bin/*", "Rakefile", ".debride-whitelist", "files/home/.claude/skills/dev-env-setup/scripts/check_dead_code.rb"]
run = "ruby files/home/.claude/skills/dev-env-setup/scripts/check_dead_code.rb"
[tasks."lint:flog"]
description = "Run flog complexity checks"
sources = ["**/*.rb", "Rakefile"]
run = "bundle exec rake flog"
[tasks."lint:flay"]
description = "Run flay duplication checks"
sources = ["**/*.rb", "Rakefile"]
run = "bundle exec rake flay"
[tasks."lint:skills"]
description = "Validate Claude skills"
sources = ["files/home/.claude/skills/**", "tools/lint_agent_skills.rb"]
run = "ruby tools/lint_agent_skills.rb"
[tasks.lint]
description = "Run all lint checks"
depends = ["lint:standard", "lint:complexity", "lint:large-files", "lint:human-only", "lint:secrets", "lint:dead-code", "lint:flog", "lint:flay", "lint:skills"]
[tasks.test]
description = "Run the test suite"
sources = ["**/*.rb", "test/**/*", "lib/**/*"]
run = "bundle exec rake test"
[tasks.dev]
description = "Run dotfiles setup on the current machine"
run = "./bin/dotf run"
[tasks.build]
description = "Build the Ubuntu 22.04 test container"
run = "docker build --platform linux/amd64 -f tools/ubuntu-22.04/Dockerfile -t dotfiles-ubuntu-22.04 ."