Skip to content

scattering: waterlevel=1e-20 #82

scattering: waterlevel=1e-20

scattering: waterlevel=1e-20 #82

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