Skip to content

Add proper loop cleanup #42

Add proper loop cleanup

Add proper loop cleanup #42

Workflow file for this run

name: lint
on:
push:
pull_request:
types: [ opened, synchronize ]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
with:
args: 'format --check'
- uses: chartboost/ruff-action@v1
with:
args: 'check'
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ '3.10' ]
name: check ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install pyright
run: |
npm install -g pyright
- name: Run pyright
run: |
pyright
- name: Verify No CLRF line endings.
run: >
! $(find . ! -path "./.git/*" -not -type d -exec file "{}" ";" |& grep -q " CRLF ")