From 520555bf5f3ca62bd2f77626b0fb6ae197b9b6ce Mon Sep 17 00:00:00 2001 From: LightArrowsEXE Date: Fri, 11 Oct 2024 20:20:04 +0200 Subject: [PATCH] Lint action: Use ruff --- .github/workflows/lint.yml | 24 ++++++++++++++---------- requirements-dev.txt | 5 +---- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a408e77..98d0d42 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,31 +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 flake8 - run: flake8 vskernels - - name: Running mypy - if: steps.dependencies.outcome == 'success' - run: mypy vskernels + + - name: Running ruff + run: ruff check vskernels diff --git a/requirements-dev.txt b/requirements-dev.txt index 12de79a..a2f94d9 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,6 +1,3 @@ -flake8>=7.0.0 -mypy>=1.10.0 -mypy-extensions>=1.0.0 packaging>=24.0 pycodestyle>=2.11.1 -typing-extensions>=4.11.0 \ No newline at end of file +ruff>=0.6.5