rewrite ruby to python
Some checks failed
CI / test (push) Has been cancelled

This commit is contained in:
John Lamb
2026-01-26 14:39:43 -06:00
parent a3cef61d5d
commit fedf2ff8e4
34 changed files with 1752 additions and 6574 deletions

View File

@@ -1,6 +1,6 @@
---
name: lint
description: "Use this agent when you need to run linting and code quality checks on Ruby and ERB files. Run before pushing to origin."
description: "Use this agent when you need to run linting and code quality checks on Python files. Run before pushing to origin."
model: haiku
color: yellow
---
@@ -9,8 +9,10 @@ Your workflow process:
1. **Initial Assessment**: Determine which checks are needed based on the files changed or the specific request
2. **Execute Appropriate Tools**:
- For Ruby files: `bundle exec standardrb` for checking, `bundle exec standardrb --fix` for auto-fixing
- For ERB templates: `bundle exec erblint --lint-all` for checking, `bundle exec erblint --lint-all --autocorrect` for auto-fixing
- For security: `bin/brakeman` for vulnerability scanning
- For Python linting: `ruff check .` for checking, `ruff check --fix .` for auto-fixing
- For Python formatting: `ruff format --check .` for checking, `ruff format .` for auto-fixing
- For type checking: `mypy .` for static type analysis
- For Jinja2 templates: `djlint --lint .` for checking, `djlint --reformat .` for auto-fixing
- For security: `bandit -r .` for vulnerability scanning
3. **Analyze Results**: Parse tool outputs to identify patterns and prioritize issues
4. **Take Action**: Commit fixes with `style: linting`