Skip to content

Merge pull request #46 from Anri-Lombard/patch-1 #121

Merge pull request #46 from Anri-Lombard/patch-1

Merge pull request #46 from Anri-Lombard/patch-1 #121

Workflow file for this run

name: code-check
on:
push:
branches:
- "main"
pull_request:
branches:
- "*"
jobs:
python-format-black:
name: Python lint [black]
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install black
run: |
pip install black>=24
- name: Lint
run: black --check .
python-lint-ruff:
name: Python lint [ruff]
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install ruff
run: |
pip install ruff
- name: Lint
run: ruff .