This repository was archived by the owner on Jul 10, 2026. It is now read-only.
Return None for a missing subnet instead of asserting in subtensor getters #1620
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: Ruff - formatter/linter check | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, edited] | |
| jobs: | |
| ruff: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Ruff format check | |
| uses: astral-sh/ruff-action@v4.0.0 | |
| with: | |
| version: "0.15.12" | |
| args: "format --diff" | |
| src: "bittensor tests" | |
| - name: Ruff linter check | |
| uses: astral-sh/ruff-action@v4.0.0 | |
| with: | |
| version: "0.15.12" | |
| args: "check" | |
| src: "bittensor" |