Skip to content

TokaMaker: Add subroutines for computing local shear and NT H-mode ac… #127

TokaMaker: Add subroutines for computing local shear and NT H-mode ac…

TokaMaker: Add subroutines for computing local shear and NT H-mode ac… #127

Workflow file for this run

name: Lint OFT
on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v5
- name: Install prerequisites
run: |
python3 -m venv ${{ github.workspace }}/oft_venv
echo "source ${{ github.workspace }}/oft_venv/bin/activate" > ${{ github.workspace }}/setup_env.sh
source ${{ github.workspace }}/setup_env.sh
pip install "ruff<0.16.0"
- name: Check stack entries
working-directory: src
run: |
source ${{ github.workspace }}/setup_env.sh
python utilities/generate_stack.py -l
- name: Check python with ruff
working-directory: src/python
run: |
source ${{ github.workspace }}/setup_env.sh
python -m ruff check