This repository has been archived by the owner on Jan 5, 2025. It is now read-only.
Setup pylint job #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint Code Base | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Change to project directory | |
run: cd llm-server | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f llm-server/requirements.txt ]; then pip install -r llm-server/requirements.txt; fi | |
- name: Lint with flake8 | |
run: | | |
pip install flake8 | |
flake8 llm-server/ --count --select=E9,F63,F7,F82 --show-source --statistics | |
flake8 llm-server/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics |