2024-06-08 23:41:32 +02:00
|
|
|
# Links & Resources:
|
|
|
|
# - https://hatch.pypa.io/latest/install/#github-actions
|
|
|
|
# - https://docs.astral.sh/ruff/integrations/#github-actions
|
2024-06-08 23:43:51 +02:00
|
|
|
# - https://black.readthedocs.io/en/stable/integrations/github_actions.html
|
2024-06-08 23:41:32 +02:00
|
|
|
on: push
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
ruff:
|
|
|
|
runs-on: docker
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Hatch
|
|
|
|
uses: https://github.com/pypa/hatch@install
|
|
|
|
- name: Run Ruff
|
|
|
|
run: hatch run lint:ruff check --output-format=github .
|
2024-06-08 23:43:51 +02:00
|
|
|
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 .
|