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