Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Pylint to CI #693

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Pylint

on:
push:
branches: ["main"]

pull_request:
types: ["opened"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:


jobs:
build:
# ubuntu-latest doesn't have all the needed Python version. Hence we need to specify Ubuntu 20.04.
# See issue https://github.com/razorpay/razorpay-python/pull/265
runs-on: ubuntu-20.04
continue-on-error: true
strategy:
matrix:
python-version: ["3.9.0", "3.10.0", "3.11.0", "3.12.0"]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
timeout-minutes: 10
with:
python-version: ${{ matrix.python-version }}
cache: 'pip' # caching pip dependencies
cache-dependency-path: '**/setup.py'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
![PyPI - Version](https://img.shields.io/pypi/v/llmware?color=blue)
[![discord](https://img.shields.io/badge/Chat%20on-Discord-blue?logo=discord&logoColor=white)](https://discord.gg/MhZn5Nc39h)
[![Documentation](https://github.com/llmware-ai/llmware/actions/workflows/pages.yml/badge.svg)](https://github.com/llmware-ai/llmware/actions/workflows/pages.yml)
[![.github/workflows/pylint.yml](https://github.com/llmware-ai/llmware/actions/workflows/pylint.yml/badge.svg?branch=main)](https://github.com/llmware-ai/llmware/actions/workflows/pylint.yml)

## 🧰🛠️🔩The Ultimate Toolkit for Building LLM Apps

Expand Down
1 change: 0 additions & 1 deletion llmware/configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@


class LLMWareConfig:

"""LLMWare global configuration object - use set/get to update """

if platform.system() == "Windows":
Expand Down
Loading