Add ruff and black checks, combine with codespell

This commit is contained in:
sneakers-the-rat 2024-07-01 23:54:40 -07:00
parent f50275473c
commit 2c717ea7e5
Signed by untrusted user who does not match committer: jonny
GPG key ID: 6DCB96EF1E4D232D

View file

@ -1,17 +1,29 @@
# Codespell configuration is within pyproject.toml name: Lint
---
name: Codespell
on: on:
push: push:
branches: [main]
pull_request: pull_request:
branches: [main] branches: [main]
permissions: permissions:
contents: read contents: read
jobs: 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: codespell:
name: Check for spelling errors name: Check for spelling errors
runs-on: ubuntu-latest runs-on: ubuntu-latest