ci: add a black job to the style.yaml workflow running black --check
All checks were successful
/ black (push) Successful in 25s
/ ruff (push) Successful in 25s

This commit is contained in:
June 2024-06-08 23:43:51 +02:00
parent 22c23ba3d6
commit 4afbebcf4a
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0

View file

@ -1,6 +1,7 @@
# Links & Resources: # Links & Resources:
# - https://hatch.pypa.io/latest/install/#github-actions # - https://hatch.pypa.io/latest/install/#github-actions
# - https://docs.astral.sh/ruff/integrations/#github-actions # - https://docs.astral.sh/ruff/integrations/#github-actions
# - https://black.readthedocs.io/en/stable/integrations/github_actions.html
on: push on: push
jobs: jobs:
@ -12,3 +13,11 @@ jobs:
uses: https://github.com/pypa/hatch@install uses: https://github.com/pypa/hatch@install
- name: Run Ruff - name: Run Ruff
run: hatch run lint:ruff check --output-format=github . run: hatch run lint:ruff check --output-format=github .
black:
runs-on: docker
steps:
- uses: actions/checkout@v4
- name: Install Hatch
uses: https://github.com/pypa/hatch@install
- name: Run Black
run: hatch run lint:black --check --diff .