Vmap optimize_smooth_param over all keypoints — 1112s → 58s (19×) #19
Workflow file for this run
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: Lint | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| # To cancel a currently running workflow from the same PR, branch or tag when a new workflow is triggered | |
| # https://stackoverflow.com/a/72408109 | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install linters | |
| run: pip install autopep8 flake8 isort | |
| - name: Check import sorting with isort | |
| run: isort --check-only --diff eks tests | |
| # Reads config from [tool.isort] in pyproject.toml | |
| - name: Check formatting with autopep8 | |
| run: autopep8 --diff --recursive --exit-code eks tests | |
| # Reads config from [tool.autopep8] in pyproject.toml | |
| - name: Lint with flake8 (critical errors only) | |
| run: flake8 eks tests --select=E9,F63,F7,F82 | |
| # Reads config from .flake8 file | |
| - name: Show fix instructions if formatting needed | |
| if: failure() | |
| run: | | |
| echo "" | |
| echo "Linting failed!" | |
| echo "" | |
| echo "To fix formatting issues locally, run:" | |
| echo " autopep8 --in-place --recursive eks tests" | |
| echo " isort eks tests" | |
| echo "" | |
| echo "To check for flake8 errors locally, run:" | |
| echo " flake8 eks tests --select=E9,F63,F7,F82" | |
| echo "" |