From 807b94e4eff4fd8ae31bcb61cad4d3c309bc6da7 Mon Sep 17 00:00:00 2001 From: LightArrowsEXE Date: Fri, 11 Oct 2024 20:20:49 +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 da8b7d2..a87126e 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 vsrgtools - - name: Running mypy - if: steps.dependencies.outcome == 'success' - run: mypy vsrgtools + + - name: Running ruff + run: ruff check vsrgtools 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