Skip to content

fix

fix #4967

Workflow file for this run

name: "Python 2 lint"
on:
push:
paths-ignore:
- 'tests/**'
pull_request:
paths-ignore:
- 'tests/**'
jobs:
flake8:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [2.7]
steps:
- uses: actions/checkout@v4
- name: Set up Python
# setup-python stopped supporting Python 2.7, use https://github.com/MatteoH2O1999/setup-python
uses: MatteoH2O1999/setup-python@v3.2.1
with:
python-version: ${{ matrix.python-version }}
allow-build: info
cache-build: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 flake8-import-order codespell
- name: Lint with flake8
run: |
flake8 --statistics