diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..c4695c5 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,23 @@ +name: Lint + +on: + push: + branches: + - main + pull_request: + +jobs: + ruff: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: ruff check + uses: astral-sh/ruff-action@v3 + with: + args: "check" + + - name: ruff format --check + uses: astral-sh/ruff-action@v3 + with: + args: "format --check"