From a5e7b08f02036930e1725313649b10b3d3c72498 Mon Sep 17 00:00:00 2001 From: John Stilley Date: Mon, 30 Dec 2024 03:57:16 -0800 Subject: [PATCH] Adding linting to GH CI --- .github/workflows/black.yaml | 14 ++++++++++++++ .github/workflows/ruff.yaml | 24 ++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/workflows/black.yaml create mode 100644 .github/workflows/ruff.yaml diff --git a/.github/workflows/black.yaml b/.github/workflows/black.yaml new file mode 100644 index 0000000..832226f --- /dev/null +++ b/.github/workflows/black.yaml @@ -0,0 +1,14 @@ +name: black + +permissions: + contents: read + +on: [push, pull_request] + +jobs: + check-formatting: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - uses: psf/black@24.10.0 diff --git a/.github/workflows/ruff.yaml b/.github/workflows/ruff.yaml new file mode 100644 index 0000000..48bce7d --- /dev/null +++ b/.github/workflows/ruff.yaml @@ -0,0 +1,24 @@ +name: Ruff Linting + +permissions: + contents: read + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-24.04 + + steps: + - uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: '3.13' + - name: Update package index + run: sudo apt-get update + - name: Run Linter + run: | + pip install -e .[dev] + ruff check . \ No newline at end of file