Skip to content

Commit ac642f0

Browse files
committed
Replace requirements.txt to pyproject.toml
1 parent 6c1e3fa commit ac642f0

34 files changed

Lines changed: 3549 additions & 1938 deletions

‎.claude/commands/commit-push-pr.md‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Commit, Push, and Create PR
2+
3+
Automates the commit, push, and PR creation workflow.
4+
5+
## Context
6+
7+
```bash
8+
# Current git status
9+
git status --porcelain
10+
11+
# Current branch
12+
git branch --show-current
13+
14+
# Recent commits for style reference
15+
git log --oneline -5
16+
```
17+
18+
## Instructions
19+
20+
1. Review the git status output above to understand what changed
21+
2. Stage all relevant changes (excluding any sensitive files like .env)
22+
3. Create a conventional commit message following the project style:
23+
- `feat:` for new features
24+
- `fix:` for bug fixes
25+
- `chore:` for maintenance
26+
- `docs:` for documentation
27+
- `refactor:` for refactoring
28+
- Use scope when applicable: `feat(asr):`, `fix(storage):`
29+
4. Push to the remote branch
30+
5. Create a PR with:
31+
- Clear title matching the commit message
32+
- Summary section with 1-3 bullet points
33+
- Test plan section
34+
- Reference to any related issues using "Fixes #N" or "Relates to #N"
35+
36+
## Arguments
37+
38+
- `$ARGUMENTS` - Optional: PR title override or commit message
39+
40+
If no arguments provided, generate appropriate messages from the changes.

‎.claude/commands/commit-push.md‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Commit and Push
2+
3+
Automates the commit and push.
4+
5+
## Context
6+
7+
```bash
8+
# Current git status
9+
git status --porcelain
10+
11+
# Current branch
12+
git branch --show-current
13+
14+
# Recent commits for style reference
15+
git log --oneline -5
16+
```
17+
18+
## Instructions
19+
20+
1. Review the git status output above to understand what changed
21+
2. Stage all relevant changes (excluding any sensitive files like .env)
22+
3. Create a conventional commit message following the project style:
23+
- `feat:` for new features
24+
- `fix:` for bug fixes
25+
- `chore:` for maintenance
26+
- `docs:` for documentation
27+
- `refactor:` for refactoring
28+
- Use scope when applicable: `feat(api):`, `fix(auth):`
29+
4. Push to the remote branch

‎.claude/commands/format-code.md‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Format Code
2+
3+
Format and lint code according to project standards.
4+
5+
## Context
6+
7+
```bash
8+
# Check for modified Python files
9+
git diff --name-only --diff-filter=ACMR | grep -E '\.py$' || echo "No Python files modified"
10+
11+
# Check ruff version
12+
uv run ruff --version
13+
```
14+
15+
## Instructions
16+
17+
1. Run the formatting tools in order:
18+
- `just format` - Auto-format with ruff
19+
- `just lint` - Check for remaining issues
20+
- `just type` - Run type checker
21+
22+
2. For any issues that can't be auto-fixed:
23+
- List the file and line number
24+
- Explain the issue
25+
- Suggest a fix
26+
27+
3. After formatting, show:
28+
- Files that were modified
29+
- Any remaining issues that need manual attention
30+
31+
## Arguments
32+
33+
- `$ARGUMENTS` - Optional: specific files or directories to format
34+
- Example: `flows/vibyy_asr/`
35+
- Example: `common/storage/client.py`
36+
37+
If no arguments, format all modified files.

‎.claude/commands/review-pr.md‎

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Review PR
2+
3+
Review a pull request with parallel subagents for comprehensive analysis.
4+
5+
## Context
6+
7+
```bash
8+
# Get PR info if number provided
9+
if [ -n "$ARGUMENTS" ]; then
10+
gh pr view "$ARGUMENTS" --json title,body,files,additions,deletions 2>/dev/null || echo "PR not found"
11+
fi
12+
13+
# Current branch diff if no PR number
14+
git diff main...HEAD --stat 2>/dev/null || git diff origin/main...HEAD --stat
15+
```
16+
17+
## Instructions
18+
19+
Review the PR using multiple perspectives:
20+
21+
1. **Style Check**: Verify code follows CONTRIBUTING.md guidelines
22+
- Naming conventions (flow_vibyy_*, task_*, UPPER_SNAKE_CASE)
23+
- Import style (absolute imports, isort grouping)
24+
- Line length (120 chars), quote style (single quotes)
25+
- Type hints on all functions
26+
27+
2. **Bug Hunt**: Look for common issues
28+
- Unhandled exceptions
29+
- Resource leaks (unclosed files/connections)
30+
- Missing null checks
31+
- Logic errors in conditionals
32+
33+
3. **Security Review**: Check for vulnerabilities
34+
- Hardcoded credentials or secrets
35+
- SQL/command injection risks
36+
- Unsafe deserialization
37+
- Missing input validation
38+
39+
4. **Architecture**: Evaluate design
40+
- Does it follow existing patterns?
41+
- Is it over-engineered?
42+
- Are there simpler alternatives?
43+
44+
5. **Tests**: Verify test coverage
45+
- Are new functions tested?
46+
- Are edge cases covered?
47+
- Do tests follow naming conventions?
48+
49+
## Arguments
50+
51+
- `$ARGUMENTS` - Optional: PR number to review
52+
- Example: `42`
53+
54+
If no PR number, review the current branch's diff against main.
55+
56+
## Output Format
57+
58+
Provide findings grouped by severity:
59+
- **Critical**: Must fix before merge
60+
- **Major**: Should fix, can discuss
61+
- **Minor**: Nice to have improvements
62+
- **Praise**: Things done well

‎.claude/commands/run-tests.md‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Run Tests
2+
3+
Run the project test suite with proper formatting.
4+
5+
## Context
6+
7+
```bash
8+
# Check if test dependencies are installed
9+
uv run python -c "import pytest" 2>&1 || echo "pytest not installed"
10+
```
11+
12+
## Instructions
13+
14+
1. Run the full quality gate suite:
15+
- `just lint` - Run ruff linter
16+
- `just format` - Auto-format code
17+
- `just type` - Run type checker
18+
- `just tests-unit` - Run unit tests
19+
20+
2. If any step fails:
21+
- Show the specific errors clearly
22+
- Suggest fixes if obvious
23+
- Do NOT proceed to the next step
24+
25+
3. Report summary at the end:
26+
- Total tests run
27+
- Tests passed/failed
28+
- Any warnings or issues
29+
30+
## Arguments
31+
32+
- `$ARGUMENTS` - Optional: specific test path or pattern
33+
- Example: `tests/unit/test_storage.py`
34+
- Example: `tests/unit/test_storage.py::test_upload`
35+
36+
If arguments provided, run only those specific tests after linting.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Continuous Deployment (Docker multi-arch)
1+
name: Continuous Deployment (build & push docker images)
22

33
on:
44
push:

0 commit comments

Comments
 (0)