pylint.yml•1.03 kB
name: Code Quality Check
on:
push:
branches: [main, master, develop]
pull_request:
branches: [main, master, develop]
jobs:
pylint:
name: Pylint Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Set up Python 3.10
run: uv python install 3.10
- name: Install dependencies
run: |
uv sync --extra dev --extra test
uv add pylint
- name: Analysing the code with pylint
run: |
uv run pylint tools/ main.py --disable=C0114,C0115,C0116 --max-line-length=127
- name: Generate pylint report
run: |
uv run pylint tools/ main.py --output-format=json --reports=no > pylint-report.json || true
- name: Upload pylint report
uses: actions/upload-artifact@v4
with:
name: pylint-report
path: pylint-report.json