Skip to content

⬆️ Update pylint requirement from ^2.11.1 to ^3.0.0 #32

⬆️ Update pylint requirement from ^2.11.1 to ^3.0.0

⬆️ Update pylint requirement from ^2.11.1 to ^3.0.0 #32

Workflow file for this run

name: build_ubuntu
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Set up cache
uses: actions/[email protected]
with:
path: .venv
key: venv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff pytest mypy
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -e .
- name: Lint with ruff
run: |
# stop the build if there are Python syntax errors or undefined names
ruff --format=github --select=E9,F63,F7,F82 --target-version=py39 pytorch_finufft
# default set of ruff rules with GitHub Annotations
ruff --format=github --target-version=py37 pytorch_finufft
- name: Lint with mypy
run: |
mypy pytorch_finufft/