From d8513b9ea1a4c1d3919c7d3602cf435ebe1a99aa Mon Sep 17 00:00:00 2001 From: LightArrowsEXE Date: Fri, 11 Oct 2024 21:23:05 +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 3a5d21f..883be7e 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 vsaa - - name: Running mypy - if: steps.dependencies.outcome == 'success' - run: mypy vsaa + + - name: Running ruff + run: ruff check vsaa 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