Skip to content

Commit

Permalink
Lint action: Use ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
LightArrowsEXE committed Oct 11, 2024
1 parent 50b3d2f commit e7a5acd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,35 @@
name: lint

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:

jobs:
windows:
runs-on: windows-latest
strategy:
matrix:
versions:
vs-versions:
- 68
python-version:
- '3.12'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install vapoursynth-portable==${{ matrix.versions }}
pip install vapoursynth-portable==${{ matrix.vs-versions }}
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Running ruff
run: ruff check vspreview
5 changes: 4 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ types-Pillow>=9.3.0.4
types-psutil>=5.9.5.5
types-PyYAML>=6.0.12.8
numpy>=1.24.2
cupy>=11.6.0
cupy>=11.6.0
packaging>=24.0
pycodestyle>=2.11.1
ruff>=0.6.5

0 comments on commit e7a5acd

Please sign in to comment.