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

11 months ago
---
name: Lint
11 months ago
on: [push, pull_request]
jobs:
1 year ago
yaml-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/library/setup
1 year ago
- name: yaml Lint
uses: ibiqlik/action-yamllint@v3
11 months ago
with:
file_or_dir: ${{ github.workspace }}
flake8-lint:
runs-on: ubuntu-latest
1 year ago
name: flake8 Lint
steps:
- uses: actions/checkout@v4
- uses: ./.github/library/setup
- name: Set up Python environment
1 year ago
uses: py-actions/flake8@v2
11 months ago
with:
args: --verbose
1 year ago
ruff-lint:
runs-on: ubuntu-latest
name: ruff Lint
steps:
- uses: actions/checkout@v4
- uses: ./.github/library/setup
1 year ago
- 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')