[lint] remove dead ignores #6436
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: | |
| push: | |
| branches: | |
| - main | |
| - release/* | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.12"] | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| - name: Create environment | |
| run: | | |
| uv venv --python ${{ matrix.python-version }} | |
| - name: Install PyTorch | |
| run: | | |
| source .venv/bin/activate | |
| # Install nvidia-nvshmem-cu12 from cu129 index (missing on cu128) | |
| uv pip install -U --pre nvidia-nvshmem-cu12 --index-url https://download.pytorch.org/whl/nightly/cu129 | |
| uv pip install -U --pre torch --index-url https://download.pytorch.org/whl/nightly/cu128 | |
| - name: Install lint dependencies | |
| run: | | |
| source .venv/bin/activate | |
| uv pip install pyrefly | |
| uv pip install .'[dev]' | |
| - name: Run pre-commit | |
| run: | | |
| source .venv/bin/activate | |
| set +e | |
| pre-commit run --all-files | |
| STATUS=$? | |
| set -e | |
| if [ $STATUS -ne 0 ]; then | |
| echo "❌ pre-commit changed files:" | |
| git --no-pager diff | |
| exit $STATUS | |
| fi |