Skip to content

Python >=3.11 compatibility changes #3

Python >=3.11 compatibility changes

Python >=3.11 compatibility changes #3

Workflow file for this run

name: Python code linting
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
install_and_test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: pip install poetry>=1.7.1
- name: Install code
run: poetry install
- name: Lint with flake8
run: poetry run flake8 spatial_kde
- name: Check formatting with Black
run: poetry run black . --check
- name: Check import order with isort
run: poetry run isort -c spatial_kde