mirror of
https://github.com/leonvanzyl/autocoder.git
synced 2026-02-02 15:23:37 +00:00
Merge branch 'master' into feature/expand-project-with-ai
This commit is contained in:
32
.claude/commands/check-code.md
Normal file
32
.claude/commands/check-code.md
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
description:
|
||||
---
|
||||
|
||||
Run the following commands and ensure the code is clean.
|
||||
|
||||
From project root:
|
||||
|
||||
# Python linting
|
||||
|
||||
ruff check .
|
||||
|
||||
# Security tests
|
||||
|
||||
python test_security.py
|
||||
|
||||
From ui/ directory:
|
||||
cd ui
|
||||
|
||||
# ESLint (will fail until we add the config)
|
||||
|
||||
npm run lint
|
||||
|
||||
# TypeScript check + build
|
||||
|
||||
npm run build
|
||||
|
||||
One-liner to run everything:
|
||||
ruff check . && python test_security.py && cd ui && npm run lint && npm run build
|
||||
|
||||
Or if you want to see all failures at once (doesn't stop on first error):
|
||||
ruff check .; python test_security.py; cd ui && npm run lint; npm run build
|
||||
Reference in New Issue
Block a user