Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .github/workflows/test-lint-black.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
name: Tests | Lint w/ Black
name: Tests | Lint (black, ruff)

on: [push, pull_request]

permissions:
contents: read

jobs:
# `lint` is a required check: keep the job name
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
persist-credentials: false

- uses: psf/black@stable
with:
options: "--check --verbose"
version: "23.3.0"

# Rules and exclusions come from [tool.ruff] in pyproject.toml. Keep the version in sync
# with the dev dependency and the pre-commit hook.
- uses: astral-sh/ruff-action@278981a28ce3188b1e39527901f38254bf3aac89 # v4.1.0
with:
version: "0.17.5"
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ repos:
# pre-commit's default_language_version, see
# https://pre-commit.com/#top_level-default_language_version
language_version: python3.10
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.17.5
hooks:
- id: ruff-check
Loading
Loading