Skip to content

Merge branch 'main' into dev #2138

Merge branch 'main' into dev

Merge branch 'main' into dev #2138

Workflow file for this run

name: PyLint
on:
push:
paths:
- 'src/**/*.py'
- 'src/api/requirements*.txt'
- '.flake8'
- '.github/workflows/pylint.yml'
permissions:
contents: read
actions: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r src/api/requirements.txt
pip install flake8 # Ensure flake8 is installed explicitly
- name: Run flake8 and pylint
run: |
flake8 --config=.flake8 src/api # Specify the directory to lint