diff --git a/.flake8 b/.flake8 index ac6a389f..6cfa4234 100644 --- a/.flake8 +++ b/.flake8 @@ -1,5 +1,5 @@ [flake8] -exclude = tests/legacy +exclude = tests/legacy,venv max-line-length = 121 # E701: multiple statements on one line (colon) # E702: multiple statements on one line (semicolon) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..83b74098 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,33 @@ +name: Lint Python Code + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.10.9' + + - name: Install dependencies + run: | + python -m venv venv + source venv/bin/activate + pip install flake8 + + - name: Run flake8 + run: | + source venv/bin/activate + flake8 . \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aa7b6009..3b53168f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,9 +18,7 @@ jobs: runs-on: tps_sco_nv steps: - name: Checkout code - uses: actions/checkout@v3 - with: - token: ${{ secrets.ACCESS_TOKEN }} + uses: actions/checkout@v4 - name: Create custom directory run: | diff --git a/README.ENG.md b/README.ENG.md index ee967a7e..f927c238 100644 --- a/README.ENG.md +++ b/README.ENG.md @@ -1,6 +1,10 @@ # LazyLLM: A Low-code Development Tool For Building Multi-agent LLMs Applications. [中文](README.md) | [EN](README.ENG.md) +[![CI](https://github.com/LazyAGI/LazyLLM/actions/workflows/main.yml/badge.svg)](https://github.com/LazyAGI/LazyLLM/actions/workflows/main.yml) +[![License](https://img.shields.io/badge/License-Apache_2.0-yellow.svg)](https://opensource.org/license/apache-2-0) +[![GitHub star chart](https://img.shields.io/github/stars/LazyAGI/LazyLLM?style=flat-square)](https://star-history.com/#LazyAGI/LazyLLM) + ## What is LazyLLM? LazyLLM is a low-code development tool for building multi-agent LLMs(large language models) applications. It assists developers in creating complex AI applications at very low costs and enables continuous iterative optimization. LazyLLM offers a convenient workflow for application building and provides numerous standard processes and tools for various stages of the application development process.
diff --git a/README.md b/README.md index 4c7e7b11..a4bfd0a2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # LazyLLM: 低代码构建多Agent大模型应用的开发工具 [中文](README.md) | [EN](README.ENG.md) +[![CI](https://github.com/LazyAGI/LazyLLM/actions/workflows/main.yml/badge.svg)](https://github.com/LazyAGI/LazyLLM/actions/workflows/main.yml) +[![License](https://img.shields.io/badge/License-Apache_2.0-yellow.svg)](https://opensource.org/license/apache-2-0) +[![GitHub star chart](https://img.shields.io/github/stars/LazyAGI/LazyLLM?style=flat-square)](https://star-history.com/#LazyAGI/LazyLLM) + ## 一、简介 LazyLLM是一款低代码构建**多Agent**大模型应用的开发工具,协助开发者用极低的成本构建复杂的AI应用,并可以持续的迭代优化效果。LazyLLM提供了便捷的搭建应用的workflow,并且为应用开发过程中的各个环节提供了大量的标准流程和工具。