refactor: rename lint command to format
This commit is contained in:
@@ -8,6 +8,7 @@ This file provides guidelines for AI coding agents operating within this reposit
|
|||||||
- **Local VM**: `make vm` (Starts local VM that simulates USB environment)
|
- **Local VM**: `make vm` (Starts local VM that simulates USB environment)
|
||||||
- **Test**: `make status-cloud` (Health checks for cloud infrastructure)
|
- **Test**: `make status-cloud` (Health checks for cloud infrastructure)
|
||||||
- **Deploy**: `make deploy-cloud` (Deploys 15 VMs to Hetzner Cloud)
|
- **Deploy**: `make deploy-cloud` (Deploys 15 VMs to Hetzner Cloud)
|
||||||
|
- **Format**: `make format` (Format Nix files)
|
||||||
|
|
||||||
## Code Style Guidelines
|
## Code Style Guidelines
|
||||||
|
|
||||||
|
|||||||
15
Makefile
15
Makefile
@@ -1,7 +1,7 @@
|
|||||||
-include .env
|
-include .env
|
||||||
export
|
export
|
||||||
|
|
||||||
.PHONY: help deploy-cloud build-usb flash-usb vm-run vm-build clean status destroy-cloud opencode lint
|
.PHONY: help deploy-cloud build-usb flash-usb vm-run vm-build clean status destroy-cloud opencode format
|
||||||
|
|
||||||
DOMAIN := $(or $(WORKSHOP_DOMAIN),codecrispi.es)
|
DOMAIN := $(or $(WORKSHOP_DOMAIN),codecrispi.es)
|
||||||
USB_DEVICE := $(or $(USB_DEVICE),/dev/sdX)
|
USB_DEVICE := $(or $(USB_DEVICE),/dev/sdX)
|
||||||
@@ -27,7 +27,7 @@ help:
|
|||||||
@echo ""
|
@echo ""
|
||||||
@echo "⚙️ Development:"
|
@echo "⚙️ Development:"
|
||||||
@echo " make opencode - Start opencode in dev shell"
|
@echo " make opencode - Start opencode in dev shell"
|
||||||
@echo " make lint - Run linting checks"
|
@echo " make format - Format Nix files"
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "Current Config:"
|
@echo "Current Config:"
|
||||||
@echo " Domain: $(DOMAIN)"
|
@echo " Domain: $(DOMAIN)"
|
||||||
@@ -113,11 +113,6 @@ clean:
|
|||||||
opencode:
|
opencode:
|
||||||
nix develop --command opencode
|
nix develop --command opencode
|
||||||
|
|
||||||
lint:
|
format:
|
||||||
@echo "🔍 Linting project files..."
|
@echo "🔍 Formatting Nix files..."
|
||||||
@nix develop -c markdownlint-cli . || true
|
@nix run nixpkgs#nixfmt-rfc-style *.nix
|
||||||
@nix develop -c nixpkgs-fmt --check . || true
|
|
||||||
|
|
||||||
lint-fix:
|
|
||||||
@echo "🎨 Formatting Nix files..."
|
|
||||||
@nix develop -c nixpkgs-fmt .
|
|
||||||
|
|||||||
10
README.md
10
README.md
@@ -151,6 +151,16 @@ connect <TAB> # Shows all available servers
|
|||||||
- HCLOUD_TOKEN for cloud deployment
|
- HCLOUD_TOKEN for cloud deployment
|
||||||
- 2GB+ RAM for VM testing
|
- 2GB+ RAM for VM testing
|
||||||
|
|
||||||
|
## 🛠️ Development Tools
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Format Nix files
|
||||||
|
make format # Format Nix files
|
||||||
|
|
||||||
|
# Start development environment
|
||||||
|
make opencode # Start opencode in dev shell
|
||||||
|
```
|
||||||
|
|
||||||
## 🧹 Cleanup
|
## 🧹 Cleanup
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
Reference in New Issue
Block a user