Skip to content

Commit

Permalink
actions: create ruff.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gianni-rosato committed Feb 18, 2025
1 parent 13c6342 commit 7634165
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Ruff Lint

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.13.1"]
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v3
with:
version: "latest"
src: >-
./scripts/encode.py
./scripts/metrics.py
./scripts/plot.py
./scripts/scores.py
./scripts/stats.py
- run: ruff check --fix
- run: ruff format
2 changes: 2 additions & 0 deletions scripts/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
from .metrics import DstVideo, CoreVideo

__all__ = ["DstVideo", "CoreVideo"]

0 comments on commit 7634165

Please sign in to comment.