Skip to content

add lint workflow

add lint workflow #1

Workflow file for this run

# This workflow will lint python and cython files using pylint and cython, respectively
# adapted from https://github.com/actions/starter-workflows/blob/main/ci/pylint.yml
# Linting can be configured in pyproject.toml
name: Lint using pylint and cython-lint
on:
push:
branches: ["main", "dev"]
pull_request:
branches: ["main", "dev"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Set up Python 3.12"
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install linters
- run: |
python -m pip install --upgrade pip

Check failure on line 25 in .github/workflows/lint.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/lint.yml

Invalid workflow file

You have an error in your yaml syntax on line 25
pip install pylint cython-lint
- name: Run lint
- run: |
pylint $(git ls-files '*.py')
cython-lint $(git ls-files '*.pyx')