minor edits to why kernels #1478
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lints | ||
| on: [push, pull_request] | ||
| jobs: | ||
| lint: | ||
| name: Run lints | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Run ruff | ||
| uses: astral-sh/ruff-action@v3 | ||
| src: >- | ||
| kernels | ||
| black: | ||
| name: Run black check | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| UV_PYTHON_PREFERENCE: only-managed | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Install uv and set the python version | ||
| uses: astral-sh/setup-uv@v7 | ||
| with: | ||
| python-version: 3.12 | ||
| - name: Install black | ||
| run: uv pip install black | ||
| - name: Check formatting | ||
| run: | | ||
| uv run black --check kernels | ||
| validate-dependencies: | ||
| name: Validate python_depends.json | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: "3.12" | ||
| - name: Validate python_depends.json is up-to-date | ||
| run: | | ||
| python ( cd kernels && update_python_depends.py --validate ) || { | ||
| echo "Error: python_depends.json is out of date." | ||
| echo "Please run: python update_python_depends.py" | ||
| exit 1 | ||
| } | ||