You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/.github/workflows/lint.yml

43 lines
1.0 KiB

---
name: Lint
on: [push, pull_request]
jobs:
yaml-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/library/setup
- name: yaml Lint
uses: ibiqlik/action-yamllint@v3
with:
file_or_dir: ${{ github.workspace }}
flake8-lint:
runs-on: ubuntu-latest
name: flake8 Lint
steps:
- uses: actions/checkout@v4
- uses: ./.github/library/setup
- name: Set up Python environment
uses: py-actions/flake8@v2
with:
args: --verbose
ruff-lint:
runs-on: ubuntu-latest
name: ruff Lint
steps:
- uses: actions/checkout@v4
- uses: ./.github/library/setup
- uses: chartboost/ruff-action@v1
pylint-lint:
runs-on: ubuntu-latest
name: pylint Lint
steps:
- uses: actions/checkout@v4
- uses: ./.github/library/setup
- name: Install dependencies
run: |
pip install pylint
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')