diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9a29df7..69ef134 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,34 +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@v4 + - name: Set up Python ${{ matrix.python-version }} 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 vsdeband - - name: Running mypy - run: | - echo "::add-matcher::.github/workflows/matchers/mypy.json" - mypy --no-pretty vsdeband - echo "::remove-matcher owner=mypy::" - continue-on-error: true + + - name: Running ruff + run: ruff check vsdeband diff --git a/requirements-dev.txt b/requirements-dev.txt index ea06cb4..a2f94d9 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,3 @@ -flake8>=7.0.0 -mypy>=1.11.2 -mypy-extensions>=1.0.0 +packaging>=24.0 pycodestyle>=2.11.1 -typing-extensions>=4.12.2 +ruff>=0.6.5