0e76c8b51c
- 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>
48 lines
1016 B
YAML
48 lines
1016 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches: ["**"]
|
|
pull_request:
|
|
branches: ["**"]
|
|
|
|
jobs:
|
|
shell-lint:
|
|
name: Shell (shellcheck)
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install shellcheck
|
|
run: apt-get update -qq && apt-get install -y -qq shellcheck
|
|
|
|
- name: Run shellcheck
|
|
run: find . -name "*.sh" -exec shellcheck {} +
|
|
|
|
js-lint:
|
|
name: JS (eslint)
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install ESLint
|
|
run: npm install --save-dev eslint@8
|
|
|
|
- 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
|