|
12 | 12 | # |
13 | 13 | # All commands below are designed to run INSIDE the dev container environment. |
14 | 14 |
|
15 | | -.PHONY: help bootstrap install install-dev requirements clean test test-unit test-integration test-coverage lint type-check format autofix validate migrate migrate-upload migrate-dry-run services-status spark-submit pyshell-run notebook prepare-localstack clean-localstack aws-login scaffold-source run-raw run-bronze run-silver run-gold |
| 15 | +.PHONY: help bootstrap install install-dev requirements clean test test-unit test-integration test-coverage lint type-check format autofix validate check-env nan-health nan-skills migrate migrate-upload migrate-dry-run services-status spark-submit pyshell-run notebook prepare-localstack clean-localstack aws-login scaffold-source run-raw run-bronze run-silver run-gold |
16 | 16 |
|
17 | 17 | # Default target |
18 | 18 | help: |
|
31 | 31 | @echo " install-dev - Install development dependencies" |
32 | 32 | @echo " requirements - Generate requirements.txt from Pipfile" |
33 | 33 | @echo " validate - Validate dev container environment" |
| 34 | + @echo " check-env - Validate environment + optional nan-doctor" |
| 35 | + @echo " nan-health - Run optional NaNLABS baseline checks" |
| 36 | + @echo " nan-skills - List available NaNLABS skills (if installed)" |
34 | 37 | @echo "" |
35 | 38 | @echo "🧪 Testing & Quality:" |
36 | 39 | @echo " test - Run all tests (unit + integration)" |
@@ -163,6 +166,38 @@ validate: |
163 | 166 | @echo "🔍 Validating dev container environment..." |
164 | 167 | ./scripts/validate-env.sh |
165 | 168 |
|
| 169 | +# Validate project environment plus optional NaNLABS checks |
| 170 | +check-env: validate |
| 171 | + @echo "" |
| 172 | + @echo "🔎 Optional NaNLABS environment check..." |
| 173 | + @if command -v nan-doctor >/dev/null 2>&1; then \ |
| 174 | + nan-doctor; \ |
| 175 | + else \ |
| 176 | + echo "ℹ️ nan-doctor not found; skipping optional baseline check."; \ |
| 177 | + fi |
| 178 | + |
| 179 | +# Run optional NaNLABS workstation checks without blocking contributors |
| 180 | +nan-health: |
| 181 | + @echo "🩺 Running optional NaNLABS checks..." |
| 182 | + @if command -v nan-doctor >/dev/null 2>&1; then \ |
| 183 | + nan-doctor; \ |
| 184 | + else \ |
| 185 | + echo "ℹ️ nan-doctor not found; skipping."; \ |
| 186 | + fi |
| 187 | + @if command -v nan-update-check >/dev/null 2>&1; then \ |
| 188 | + nan-update-check; \ |
| 189 | + else \ |
| 190 | + echo "ℹ️ nan-update-check not found; skipping."; \ |
| 191 | + fi |
| 192 | + |
| 193 | +# List available NaNLABS skills when baseline is installed |
| 194 | +nan-skills: |
| 195 | + @if command -v nan-skills >/dev/null 2>&1; then \ |
| 196 | + nan-skills list; \ |
| 197 | + else \ |
| 198 | + echo "ℹ️ nan-skills not found; skipping."; \ |
| 199 | + fi |
| 200 | + |
166 | 201 | # Check status of all services |
167 | 202 | services-status: |
168 | 203 | @echo "🔧 Checking dev container services status..." |
|
0 commit comments