Files
bot-bottle/.gitea/workflows/lint.yml
T
didericis 0ca81b102c
Lint and Type Check / lint (push) Failing after 7m5s
test / unit (pull_request) Failing after 26s
test / integration (pull_request) Failing after 15s
ci: add dev requirements file and update workflow
Create requirements-dev.txt with pylint and pyright. The bot-bottle
project itself has no runtime dependencies. Update workflow to use
the requirements file for pip caching.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-06-03 23:07:59 -04:00

37 lines
858 B
YAML

name: Lint and Type Check
on:
push:
paths:
- '**.py'
- '.pylintrc'
- '.gitea/workflows/lint.yml'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
cache: 'pip'
cache-dependency-path: requirements-dev.txt
- name: Install dev dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Run pylint
run: |
# Run pylint on all Python files in the repo
find . -name '*.py' -not -path './.venv/*' -not -path './.git/*' | xargs pylint --fail-under=8.0 || true
- name: Run pyright
run: |
# Run pyright type checking
pyright .