Skip to content

type fixes and other numerous fixes #4

type fixes and other numerous fixes

type fixes and other numerous fixes #4

name: Lint and Static Analysis
on:
pull_request:
paths:
- main.py
- context_chat_backend/**
push:
branches:
- master
paths:
- main.py
- context_chat_backend/**
jobs:
analysis:
runs-on: ubuntu-latest
name: Lint and Static Analysis
steps:
- name: Setup python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dev dependencies
working-directory: context_chat_backend
run: |
pip install -r reqs.dev
- name: Lint with Ruff
working-directory: context_chat_backend
run: |
ruff --output-format=github context_chat_backend main.py
- name: Static analysis with pyright
working-directory: context_chat_backend
run: |
pyright context_chat_backend main.py