Skip to content

scattering: allow data_load to accept local path #87

scattering: allow data_load to accept local path

scattering: allow data_load to accept local path #87

Workflow file for this run

name: pre-commit
on:
push:
tags:
- '*'
jobs:
format:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Extract tag name
id: tag
run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Update version in setup.py
run: >-
sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.tag.outputs.TAG_NAME }}/g" setup.py
- name: Install packages
run: |
python -m pip install --upgrade pip
python -m pip install -r .github/workflows/requirements_precommit.txt
- name: Lint
run: pre-commit run --all-files --config pre-commit-hooks/.pre-commit-config.yaml