Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
d1a4c46
Fix logging.info and other state transitions in LoggingMachine. Resol…
Feb 19, 2026
ff32076
Merge branch 'staging' into fix/logging-info-issue-1836
thewhaleking Feb 27, 2026
330fa02
fix: add set_trace(False) in before_enable_default to reset formatter…
ionodeionode Mar 5, 2026
58c07e7
fix: correct indentation and formatting for set_trace(False)
ionodeionode Mar 6, 2026
a75cb02
Merge branch 'staging' into fix/logging-info-issue-1836
basfroman Mar 19, 2026
7b2c435
Merge branch 'staging' into fix/logging-info-issue-1836
basfroman Mar 23, 2026
6b12be8
Merge pull request #3270 from ionodeionode/fix/logging-info-issue-1836
basfroman Mar 23, 2026
6e15b82
clear_coldkey_swap_announcement async
ibraheem-abe Mar 24, 2026
02cd91c
clear_coldkey_swap_announcement subtensor
ibraheem-abe Mar 24, 2026
a351278
update subtensor_module
ibraheem-abe Mar 24, 2026
24e2f3d
update extrinsics
ibraheem-abe Mar 24, 2026
d027d93
add clear_coldkey_swap_announcement_extrinsic sync
ibraheem-abe Mar 24, 2026
6c56801
clear_coldkey_swap_announcement_extrinsic asyncx
ibraheem-abe Mar 24, 2026
2801a17
add sync unit test
ibraheem-abe Mar 24, 2026
93dcf8c
extend test_coldkey_swap e2e
ibraheem-abe Mar 24, 2026
2fd38e0
extend async e2e test
ibraheem-abe Mar 24, 2026
9c97f2f
Merge pull request #3296 from opentensor/feat/coldkey-swap-clear
ibraheem-abe Mar 25, 2026
d0f62aa
Removes munch
thewhaleking Mar 25, 2026
30f00be
Fixes
thewhaleking Mar 25, 2026
4ea80f2
Handle Python 3.10, add unit test
thewhaleking Mar 25, 2026
fd310f4
Merge pull request #3298 from opentensor/feat/thewhaleking/remove-munch
thewhaleking Mar 25, 2026
86e7e64
There is not Balances.transfer
thewhaleking Mar 30, 2026
d91dcd1
Bumps all workflows versions
thewhaleking Mar 30, 2026
611fc3c
UV
thewhaleking Mar 30, 2026
ad74a25
UV
thewhaleking Mar 30, 2026
81eb649
Ensures we don't accidentally install ASI 2.0 on this
thewhaleking Mar 30, 2026
0bb7644
Merge pull request #3302 from opentensor/feat/thewhaleking/stricter-r…
thewhaleking Mar 30, 2026
175aa82
Merge branch 'staging' into feat/thewhaleking/bump-workflow-versions
thewhaleking Mar 30, 2026
0b8c20e
updates exception checking for upcoming change
ibraheem-abe Mar 30, 2026
15bead7
testing
ibraheem-abe Mar 30, 2026
43f2713
revert
ibraheem-abe Mar 30, 2026
0bae557
fix and extend incentive test (sync and async)
basfroman Mar 31, 2026
d6fa59d
Merge branch 'master' into fix/roman/e2e-incentive
basfroman Mar 31, 2026
72e3bd1
Merge branch 'fix/roman/e2e-incentive' into feat/thewhaleking/bump-wo…
basfroman Mar 31, 2026
831afdf
Merge branch 'fix/roman/e2e-incentive' into fix/thewhaleking/typo-in-…
basfroman Mar 31, 2026
89329b3
Merge branch 'fix/roman/e2e-incentive' into fix/e2e-test-commitment
basfroman Mar 31, 2026
3ca56a6
Merge pull request #3300 from opentensor/fix/thewhaleking/typo-in-doc…
thewhaleking Mar 31, 2026
d3b6b98
Merge pull request #3301 from opentensor/feat/thewhaleking/bump-workf…
thewhaleking Mar 31, 2026
c01a385
Merge branch 'fix/roman/e2e-incentive' into fix/e2e-test-commitment
basfroman Mar 31, 2026
3abc0bd
Merge pull request #3303 from opentensor/fix/e2e-test-commitment
basfroman Mar 31, 2026
0558493
Merge pull request #3304 from opentensor/fix/roman/e2e-incentive
basfroman Mar 31, 2026
e947441
owner is now also a validator
ibraheem-abe Apr 3, 2026
6ef4543
update url
ibraheem-abe Apr 3, 2026
3c11f9a
fix metagraph test
ibraheem-abe Apr 3, 2026
8cc19d0
update url
ibraheem-abe Apr 3, 2026
fd4464e
parity
ibraheem-abe Apr 3, 2026
d8428e3
reg fees change every block now
ibraheem-abe Apr 3, 2026
20821aa
account for neuron reg increasing costs
ibraheem-abe Apr 3, 2026
a9442f2
update
ibraheem-abe Apr 3, 2026
113786b
Merge pull request #3305 from latent-to/fix/e2e-tests-for-stake-lock-…
ibraheem-abe Apr 3, 2026
5fd407e
get_staking_hotkeys query
ibraheem-abe Apr 6, 2026
0740a83
add condition sync
ibraheem-abe Apr 6, 2026
d1ffa2f
condition async
ibraheem-abe Apr 6, 2026
6c6f84e
update test
ibraheem-abe Apr 6, 2026
7158934
async tests
ibraheem-abe Apr 6, 2026
c66c52b
ruff & tests
ibraheem-abe Apr 6, 2026
0b31f85
Merge pull request #3306 from latent-to/update/staking-hotkeys-limita…
ibraheem-abe Apr 6, 2026
f3f5d2b
updates workflow perms and echos checksums/versions for reviewers
ibraheem-abe Apr 7, 2026
7a4dff2
Merge pull request #3307 from latent-to/update/release-workflow
ibraheem-abe Apr 7, 2026
590f218
update metagraph info data for comparison
basfroman Apr 10, 2026
6387e40
Merge pull request #3310 from latent-to/fix/roman/e2e_test_metagraph_…
basfroman Apr 10, 2026
e93b751
Removes flake8, uses ruff for linter check
thewhaleking Apr 14, 2026
dc62262
Update version
thewhaleking Apr 14, 2026
1713ed8
Ruff linter fixes
thewhaleking Apr 14, 2026
23cfdc7
Ruff
thewhaleking Apr 14, 2026
3c1a1de
Add reqs
thewhaleking Apr 14, 2026
73fba4a
Remove ScaleObj
thewhaleking Apr 14, 2026
d72d616
Remove reuse block hash upstream logic
thewhaleking Apr 14, 2026
f9f84ed
Checkin
thewhaleking Apr 14, 2026
d1cafc0
Unit tests fixed
thewhaleking Apr 14, 2026
ba9ae10
Bump cyscale
thewhaleking Apr 14, 2026
75ef5c6
Checkin
thewhaleking Apr 14, 2026
7ea1d1b
Removed decode_account_id
thewhaleking Apr 14, 2026
9457319
Checkin
thewhaleking Apr 14, 2026
812baa2
Removed .flake8 file
thewhaleking Apr 14, 2026
c630817
Update pyproject.toml
thewhaleking Apr 14, 2026
929caeb
Update Makefile
thewhaleking Apr 14, 2026
dd8c2ab
Renames mypy workflow
thewhaleking Apr 14, 2026
fa9084f
Removes pruning_score
thewhaleking Apr 14, 2026
5188563
Update pyproject.toml
thewhaleking Apr 14, 2026
84d9616
Remove unused imports
thewhaleking Apr 14, 2026
b846bb6
Types
thewhaleking Apr 14, 2026
32247d5
Checkin
thewhaleking Apr 14, 2026
424af5b
Merge branch 'feat/thewhaleking/use-ruff-linter' into feat/thewhaleki…
thewhaleking Apr 14, 2026
cd785e5
Merge pull request #3313 from latent-to/feat/thewhaleking/use-ruff-li…
thewhaleking Apr 14, 2026
6421b67
Unit tests passed
thewhaleking Apr 15, 2026
e2b79f4
Progress
thewhaleking Apr 15, 2026
12f9745
Checkin
thewhaleking Apr 15, 2026
91d414d
Checkin
thewhaleking Apr 15, 2026
6e4fd3e
Merge branch 'staging' into feat/thewhaleking/asi-2.0
thewhaleking Apr 15, 2026
bdaf49c
Mypy
thewhaleking Apr 15, 2026
ca36644
Checkin
thewhaleking Apr 15, 2026
ddaaf29
Checkin
thewhaleking Apr 15, 2026
d02a096
Checkin
thewhaleking Apr 15, 2026
3a9e0c0
Async unit tests passing
thewhaleking Apr 15, 2026
bd884a8
Sync unit tests passing
thewhaleking Apr 15, 2026
ecfb742
Bump mypy
thewhaleking Apr 15, 2026
c240424
Almost all integration tests working
thewhaleking Apr 15, 2026
2922202
Some Test fixes
thewhaleking Apr 15, 2026
7cc31a6
Some Test fixes
thewhaleking Apr 15, 2026
c376673
Metagraph e2e test fix
thewhaleking Apr 15, 2026
d679d98
Removes httpx from dev reqs
thewhaleking Apr 15, 2026
eebb352
Test fix
thewhaleking Apr 15, 2026
f146100
Adds note instead
thewhaleking Apr 15, 2026
93f71b9
Merge pull request #3315 from latent-to/chore/thewhaleking/remove-httpx
thewhaleking Apr 15, 2026
89df5d3
Merge branch 'staging' into feat/thewhaleking/asi-2.0
thewhaleking Apr 16, 2026
8192392
Merge remote-tracking branch 'origin/feat/thewhaleking/asi-2.0' into …
thewhaleking Apr 16, 2026
cb95640
Dendrite Test fix
thewhaleking Apr 16, 2026
6f893ab
Metagraph Test fix
thewhaleking Apr 16, 2026
45ea74b
Unit test fixes
thewhaleking Apr 16, 2026
11896d4
Neuron certificate fix
thewhaleking Apr 16, 2026
9b1886b
Revealed commitment fixes
thewhaleking Apr 16, 2026
afede70
subnet identity set fix
thewhaleking Apr 16, 2026
bca99f9
Bump cyscale
thewhaleking Apr 16, 2026
84a0be3
Bump reqs to safe versions
thewhaleking Apr 16, 2026
d79e81e
Type fixes
thewhaleking Apr 16, 2026
bf7a730
Import fixes
thewhaleking Apr 16, 2026
ee92840
Fixes _decode_crowdloan_entry and adds a test
thewhaleking Apr 16, 2026
c68624f
Bump cyscale
thewhaleking Apr 17, 2026
70aafdd
trigger ci
thewhaleking Apr 17, 2026
b226a4f
add `register_limit` to pallets
basfroman Apr 17, 2026
e934bff
add extrinsics
basfroman Apr 17, 2026
9827898
add async/subtensor methods
basfroman Apr 17, 2026
3467083
update SubtensorApi
basfroman Apr 17, 2026
817350e
add unit tests
basfroman Apr 17, 2026
a8c2e17
add e2e tests
basfroman Apr 17, 2026
1ae73e1
update dev framework
basfroman Apr 17, 2026
ad2a8e4
Merge pull request #3316 from latent-to/feat/roman/register_limit
basfroman Apr 20, 2026
479bd68
Merge branch 'staging' into feat/thewhaleking/asi-2.0
basfroman Apr 21, 2026
e389dd9
CHANGELOG.md
basfroman Apr 21, 2026
d629338
bumping versions
basfroman Apr 21, 2026
9725e9e
Bump ASI
thewhaleking Apr 21, 2026
4de0848
Merge pull request #3314 from latent-to/feat/thewhaleking/asi-2.0
thewhaleking Apr 21, 2026
749211f
Merge branch 'staging' into changelog/10.3.0
basfroman Apr 21, 2026
59b55e6
conflict
basfroman Apr 21, 2026
918c00c
Bump ASI req
thewhaleking Apr 23, 2026
3adbd3e
Merge pull request #3324 from latent-to/chore/thewhaleking/bump-asi-2…
thewhaleking Apr 23, 2026
10fe76f
get rid of deprecated logic
basfroman Apr 23, 2026
14aefa7
update extrinsics
basfroman Apr 23, 2026
24e1158
update subtensors
basfroman Apr 23, 2026
241fb90
opps - pallet
basfroman Apr 23, 2026
2c8286e
unit tests
basfroman Apr 23, 2026
d25c6c6
e2e tests
basfroman Apr 23, 2026
abdfd0e
move torch stuff
basfroman Apr 23, 2026
88ee2cb
Merge pull request #3325 from latent-to/feat/roman/get-rid-pow
basfroman Apr 23, 2026
9ef6bae
hoist get_required_fields out of to_headers
okradze Apr 24, 2026
f40dff8
Bump ASI + cyscale
thewhaleking Apr 24, 2026
50e805f
Merge branch 'staging' into chore/thewhaleking/bump-asi-cyscale
thewhaleking Apr 24, 2026
fa252ad
Adds CODEOWNERS file
thewhaleking Apr 24, 2026
bbe7a46
Merge pull request #3323 from okradze/fix/to-headers-perf
thewhaleking Apr 24, 2026
9f36401
Merge pull request #3327 from latent-to/feat/thewhaleking/add-CODEOWNERS
thewhaleking Apr 24, 2026
2444067
Merge branch 'staging' into chore/thewhaleking/bump-asi-cyscale
thewhaleking Apr 24, 2026
3f8ecc1
Merge pull request #3326 from latent-to/chore/thewhaleking/bump-asi-c…
thewhaleking Apr 24, 2026
f8c48c7
Merge branch 'staging' into changelog/10.3.0
basfroman Apr 24, 2026
3235533
bumping deps versions
basfroman Apr 24, 2026
6341fe3
update changelog
basfroman Apr 24, 2026
1d4b213
Merge pull request #3319 from latent-to/changelog/10.3.0
basfroman Apr 24, 2026
b9302ca
Bumps ruff to latest
thewhaleking Apr 28, 2026
68526ff
Merge pull request #3331 from latent-to/feat/thewhaleking/bump-ruff
thewhaleking Apr 28, 2026
03d4d5a
Merge branch 'staging' into backmerge/10.3.0
thewhaleking Apr 28, 2026
824cc7d
Merge pull request #3334 from latent-to/backmerge/10.3.0
thewhaleking Apr 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .flake8

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/_run-e2e-single.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,22 @@ jobs:

steps:
- name: Check-out repository
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: ${{ inputs.ref != '' && inputs.ref || github.ref }}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

- name: Install uv
uses: astral-sh/setup-uv@v4
uses: astral-sh/setup-uv@v8.0.0
with:
enable-cache: false

- name: Cache uv and venv
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: |
~/.cache/uv
Expand All @@ -70,7 +70,7 @@ jobs:
run: uv sync --extra dev --dev

- name: Download Cached Docker Image
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: ${{ inputs.artifact-name }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/changelog-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
if: startsWith(github.head_ref, 'release/') || startsWith(github.head_ref, 'hotfix/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: tj-actions/changed-files@v46
- uses: actions/checkout@v6
- uses: tj-actions/changed-files@v47.0.5
id: changed
- name: Ensure CHANGELOG.md updated
if: contains(steps.changed.outputs.all_changed_files, 'CHANGELOG.md') == false
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
script: core.setFailed('CHANGELOG.md must be updated.')
6 changes: 3 additions & 3 deletions .github/workflows/compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
outputs:
python-versions: ${{ steps.read-versions.outputs.versions }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- id: read-versions
run: |
versions=$(cat .github/supported-python-versions.json)
Expand All @@ -29,8 +29,8 @@ jobs:
python-version: ${{ fromJson(needs.read-python-versions.outputs.python-versions) }}

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install cosign
uses: sigstore/cosign-installer@v3
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/e2e-subtensor-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,22 @@ jobs:
test-files: ${{ steps.get-tests.outputs.test-files }}
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.10'

- name: Install uv
uses: astral-sh/setup-uv@v4
uses: astral-sh/setup-uv@v8.0.0
with:
enable-cache: false
cache-dependency-glob: '**/pyproject.toml'
ignore-nothing-to-cache: true

- name: Cache uv and venv
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: |
~/.cache/uv
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
outputs:
python-versions: ${{ steps.read-versions.outputs.versions }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- id: read-versions
run: |
versions=$(cat .github/supported-python-versions.json)
Expand Down Expand Up @@ -201,7 +201,7 @@ jobs:
run: docker save -o subtensor-localnet.tar ${{ steps.set-image.outputs.image }}

- name: Upload Docker Image as Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: subtensor-localnet
path: subtensor-localnet.tar
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/monitor_requirements_size_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
outputs:
python-versions: ${{ steps.read-versions.outputs.versions }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- id: read-versions
run: |
versions=$(cat .github/supported-python-versions.json)
Expand All @@ -40,8 +40,8 @@ jobs:
py313: ${{ steps.set-output.outputs.py313 }}

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Post venv size summary to PR
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Flake8 and Mypy - linters check
name: Mypy check
permissions:
contents: read

Expand All @@ -12,7 +12,7 @@ jobs:
outputs:
python-versions: ${{ steps.read-versions.outputs.versions }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- id: read-versions
run: |
versions=$(cat .github/supported-python-versions.json)
Expand All @@ -31,20 +31,20 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

- name: Install uv
uses: astral-sh/setup-uv@v4
uses: astral-sh/setup-uv@v8.0.0
with:
enable-cache: false

- name: Cache uv and .venv
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: |
~/.cache/uv
Expand All @@ -55,8 +55,5 @@ jobs:
- name: Sync dev deps
run: uv sync --extra dev --dev

- name: Flake8
run: uv run flake8 bittensor/ --count

- name: Mypy
run: uv run mypy --ignore-missing-imports bittensor/
14 changes: 7 additions & 7 deletions .github/workflows/nightly-e2e-tests-subtensor-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@ jobs:
test-files: ${{ steps.get-tests.outputs.test-files }}
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.10'

- name: Install uv
uses: astral-sh/setup-uv@v4
uses: astral-sh/setup-uv@v8.0.0
with:
enable-cache: false
cache-dependency-glob: '**/pyproject.toml'
ignore-nothing-to-cache: true

- name: Cache uv and venv
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: |
~/.cache/uv
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
outputs:
python-versions: ${{ steps.read-versions.outputs.versions }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- id: read-versions
run: |
versions=$(cat .github/supported-python-versions.json)
Expand All @@ -110,13 +110,13 @@ jobs:
docker save -o subtensor-localnet-devnet-ready.tar ghcr.io/opentensor/subtensor-localnet:devnet-ready

- name: Upload main Docker Image as Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: subtensor-localnet-main
path: subtensor-localnet-main.tar

- name: Upload devnet-ready Docker Image as Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: subtensor-localnet-devnet-ready
path: subtensor-localnet-devnet-ready.tar
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ jobs:
build:
name: Build Python distribution
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v6
with:
python-version: '3.11'

Expand Down Expand Up @@ -45,7 +47,7 @@ jobs:
fi

- name: Upload artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: dist
path: dist/
Expand All @@ -60,11 +62,19 @@ jobs:

steps:
- name: Download artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: dist
path: dist/

- name: Verify artifact checksums
run: |
echo "Artifacts to be published:"
ls -la dist/
echo ""
echo "SHA256 checksums:"
sha256sum dist/*

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
32 changes: 14 additions & 18 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Ruff - formatter check
name: Ruff - formatter/linter check
permissions:
contents: read

Expand All @@ -8,26 +8,22 @@ on:

jobs:
ruff:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest

timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v5
- name: Ruff format check
uses: astral-sh/[email protected]
with:
python-version: "3.11"

- name: Install Ruff in virtual environment
run: |
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
python -m pip install ruff==0.11.5
version: "0.15.12"
args: "format --diff"
src: "bittensor tests"

- name: Ruff format check
run: |
source venv/bin/activate
python -m ruff format --diff bittensor
- name: Ruff linter check
uses: astral-sh/[email protected]
with:
version: "0.15.12"
args: "check"
src: "bittensor"
Loading
Loading