From 52fc5e508f8d0ba111a2234aedbd67678f20bba1 Mon Sep 17 00:00:00 2001 From: Etienne Perot Date: Sun, 29 Sep 2024 19:00:26 -0700 Subject: [PATCH] Add Python lint workflow. --- .github/workflows/python-lint.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/python-lint.yml diff --git a/.github/workflows/python-lint.yml b/.github/workflows/python-lint.yml new file mode 100644 index 0000000..f66897d --- /dev/null +++ b/.github/workflows/python-lint.yml @@ -0,0 +1,19 @@ +name: Python lint +on: [push] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Lint with Ruff + run: | + pip install ruff + ruff check --output-format=github . + continue-on-error: true