Fix Jared-asks-about-Wynter branch; add Python lint to CI
- When Jared asks a question containing Wynter's name, it now uses a dedicated mock-Wynter prompt instead of the generic positive-Jared one. The _is_positive_about_jared guard is also skipped for this branch so negative words aimed at Wynter don't trigger the fallback. Fallback changed from "Jared is absolutely right!" (nonsensical for Wynter questions) to "Sounds about right — Wynter had it coming." - Added ruff Python lint job to .gitea/workflows/lint.yml covering matrixbot/ on every push and PR. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -30,3 +30,18 @@ jobs:
|
||||
|
||||
- name: Run ESLint
|
||||
run: npx eslint --ext .js hookshot/
|
||||
|
||||
python-lint:
|
||||
name: Python (ruff)
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install ruff
|
||||
run: pip install ruff
|
||||
|
||||
- name: Check syntax errors
|
||||
run: ruff check matrixbot/ --select E9,F63,F7,F82 --output-format=github
|
||||
|
||||
- name: Run full lint
|
||||
run: ruff check matrixbot/ --output-format=github
|
||||
|
||||
Reference in New Issue
Block a user