chore: refactor build configurations.

This commit is contained in:
ramvignesh-b
2026-04-22 16:42:53 +05:30
parent 11b9e8b04c
commit 694715a90c
5 changed files with 47 additions and 13 deletions
+4 -4
View File
@@ -5,22 +5,22 @@ pre-commit:
ruff:
root: "backend/"
glob: "*.py"
run: uv run ruff check --fix {staged_files} && uv run ruff format {staged_files}
run: export PATH="$HOME/.local/bin:$PATH" && uv run ruff check --fix {staged_files} && uv run ruff format {staged_files}
stage_fixed: true
django-check:
root: "backend/"
run: uv run manage.py check
run: export PATH="$HOME/.local/bin:$PATH" && uv run manage.py check
# Frontend: Biome (Linter + Formatter)
biome:
root: "frontend/"
glob: "**/*.{js,ts,jsx,tsx}"
run: bunx @biomejs/biome check --write --no-errors-on-unmatched {staged_files}
run: export PATH="$HOME/.bun/bin:$PATH" && bunx @biomejs/biome check --write --no-errors-on-unmatched {staged_files}
stage_fixed: true
# Frontend: TypeScript
tsc:
root: "frontend/"
glob: "**/*.ts, **/*.tsx"
run: bunx tsc --noEmit --incremental --tsBuildInfoFile --ignoreConfig .tsbuildinfo {staged_files}
run: export PATH="$HOME/.bun/bin:$PATH" && bunx tsc --noEmit --incremental --tsBuildInfoFile --ignoreConfig .tsbuildinfo {staged_files}