From 2c717ea7e50f2a8d3e9d0ae5e31c17695afd8a6e Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Mon, 1 Jul 2024 23:54:40 -0700 Subject: [PATCH] Add ruff and black checks, combine with codespell --- .github/workflows/{codespell.yml => lint.yml} | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) rename .github/workflows/{codespell.yml => lint.yml} (51%) diff --git a/.github/workflows/codespell.yml b/.github/workflows/lint.yml similarity index 51% rename from .github/workflows/codespell.yml rename to .github/workflows/lint.yml index dd0eb8e..fdad9a8 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/lint.yml @@ -1,17 +1,29 @@ -# Codespell configuration is within pyproject.toml ---- -name: Codespell +name: Lint on: push: - branches: [main] pull_request: branches: [main] + permissions: contents: read jobs: + ruff: + name: Ruff Linting + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: chartboost/ruff-action@v1 + + black: + name: Black Formatting + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: psf/black@stable + codespell: name: Check for spelling errors runs-on: ubuntu-latest