Skip to content

Implement replacement of targets with ToOs #66

Implement replacement of targets with ToOs

Implement replacement of targets with ToOs #66

Workflow file for this run

name: Lint
on:
push:
branches: [ main ]
paths-ignore:
- 'docs/**'
pull_request:
branches: [ main ]
paths-ignore:
- 'docs/**'
jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel setuptools
- name: Lint with ruff
run: |
# stop the build if there are Python syntax errors or undefined names
python -m pip install ruff
ruff check .
- name: Lint with black
run: |
python -m pip install black
black --check src/
black --check tests/