Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
8047 commits
Select commit Hold shift + click to select a range
701ebff
update SubtensorApi
Aug 7, 2025
c059e0b
update sync extrinsic
Aug 7, 2025
1ab7491
update async extrinsic
Aug 7, 2025
d3ed298
update e2e test
Aug 7, 2025
e90c412
fix unit tests
Aug 7, 2025
e30dbc5
update requirements
Aug 7, 2025
fc47323
Bump bittensor-wallet version so people are less likely to install th…
thewhaleking Aug 7, 2025
198d5ab
Improves the error formatter for instances where the docs are a strin…
thewhaleking Aug 7, 2025
0e4ef47
Merge pull request #3005 from opentensor/chore/thewhaleking/bump-bt-w…
thewhaleking Aug 7, 2025
e51ad47
Merge pull request #3006 from opentensor/fix/thewhaleking/error-forma…
thewhaleking Aug 7, 2025
c5b5e41
Merge branch 'staging' into feat/roman/add-new-crv3-logic
basfroman Aug 8, 2025
4a14322
`LoggingMachine` initialization updated to explicitly call both paren…
Aug 8, 2025
639cb66
fix uv version
Aug 8, 2025
1ed62d3
Merge pull request #3008 from opentensor/fix/roman/add-correct-parren…
basfroman Aug 9, 2025
ec65276
Fixed moving_price conversion from I96F32 to float
mcjkula Aug 10, 2025
11df0e8
Merge pull request #3010 from mcjkula/fix/moving-price-decoding-in-dy…
thewhaleking Aug 11, 2025
81af4fd
uv is broken for 0.8 < python 3.10 until 0.8.8 (see https://github.co…
thewhaleking Aug 11, 2025
ee0f422
Merge pull request #2999 from opentensor/feat/roman/add-new-crv3-logic
thewhaleking Aug 11, 2025
35a2779
Merge branch 'staging' into fix/thewhaleking/fix-test-breakages
thewhaleking Aug 11, 2025
38e0943
Merge pull request #3011 from opentensor/fix/thewhaleking/fix-test-br…
thewhaleking Aug 11, 2025
437a9b8
Update changelog + version
thewhaleking Aug 11, 2025
a605448
Merge pull request #3012 from opentensor/changelog/9.9.0
thewhaleking Aug 11, 2025
6843a1f
Major version locks drand
thewhaleking Aug 11, 2025
245c64c
Merge pull request #3014 from opentensor/fix/thewhaleking/drand-major…
thewhaleking Aug 11, 2025
1dc8d82
Merge pull request #3013 from opentensor/release/9.9.0
thewhaleking Aug 12, 2025
ac81421
fix: reflect correct return types for get_delegated
Arthurdw Aug 14, 2025
ad9aa79
fix: it is actually delegated info not delegate info
Arthurdw Aug 14, 2025
3edcbb4
Added fee calculation and fixed tests for burned register.
thewhaleking Aug 15, 2025
46d7847
Added fee calculation for unstaking. Added TODOs with questions.
thewhaleking Aug 15, 2025
a7b76b5
Added fee calculation for sync unstaking aswell
thewhaleking Aug 15, 2025
3991115
Ruff
thewhaleking Aug 15, 2025
d610bf5
Fix unit tests
thewhaleking Aug 15, 2025
feecd2b
fix `test_commit_and_reveal_weights_cr4` (included non-fast-runtime)
Aug 19, 2025
5df01b6
move `get_unstaking_fee` to `utils.py` modules. update extrinsics
Aug 19, 2025
737aa3e
improve `get_unstaking_fee`
Aug 20, 2025
ef3f95a
improve `unstaking` extrinsics logging
Aug 20, 2025
ac0f9c5
improve `_do_burned_register` extrinsics calls
Aug 20, 2025
7c1c543
opps, fix async `get_extrinsic_fee`
Aug 20, 2025
101d716
try to fix `tests/e2e_tests/test_liquidity.py`
Aug 20, 2025
f670b1d
fix comment
Aug 20, 2025
bfe5a0e
use `CLOSE_IN_VALUE` in `test_batch_operations`
Aug 20, 2025
b855e8e
Merge pull request #3020 from opentensor/fix/thewhaleking/broken-e2e-…
basfroman Aug 20, 2025
9a59981
fix bug in `bittensor.core.async_subtensor.AsyncSubtensor.get_next_ep…
Aug 21, 2025
9605028
add `tests.e2e_tests.utils.chain_interactions.async_wait_interval` fo…
Aug 21, 2025
a143cff
add `tests.e2e_tests.test_commit_reveal.test_async_commit_and_reveal_…
Aug 21, 2025
68c4eaa
Merge pull request #3022 from opentensor/feat/roman/add-async-test-crv4
basfroman Aug 21, 2025
95d6f68
add `get_timelocked_weight_commits` method
Aug 21, 2025
30fdd80
update SubtensorApi
Aug 21, 2025
b7a5e40
add unit tests
Aug 21, 2025
f4603a5
update e2e test
Aug 21, 2025
ac80745
merge: branch 'staging' into PATCH-reflect-correct-types-for-get_dele…
Arthurdw Aug 22, 2025
2e903fc
Merge pull request #3023 from opentensor/feat/roman/use-TimelockedWei…
basfroman Aug 22, 2025
c50bea7
increase tempo, readability
Aug 23, 2025
688eba2
merge: branch 'staging' into PATCH-reflect-correct-types-for-get_dele…
Arthurdw Aug 24, 2025
daeb3e2
Merge pull request #3016 from Arthurdw/PATCH-reflect-correct-types-fo…
thewhaleking Aug 24, 2025
36209ea
Merge pull request #3025 from opentensor/fix/roman/fix-flaky-behavior…
basfroman Aug 25, 2025
bf979e8
fix `test_incentive`
Aug 25, 2025
7ab832f
fix `test_metagraph`
Aug 25, 2025
1505949
split test cases to each matrix item
Aug 25, 2025
74bc8a2
quote matrix test-file in pytest command
Aug 25, 2025
baf6239
try apply labels and increase `max-parallel`
Aug 25, 2025
21efc5b
include -> test + refer
Aug 25, 2025
fc93bbc
make test name shorter
Aug 25, 2025
9aa4b45
Use CamelCase in the name `CLOSE_IN_VALUE`
Aug 26, 2025
2b1789e
add `move_all_stake` parameter to `move_stake_extrinsic` extrinsic
Aug 26, 2025
c4c93d5
update `move_stake` methods in Subtensor class
Aug 26, 2025
f452699
update SubtensorApi
Aug 26, 2025
e1826b2
update helper
Aug 26, 2025
9a3cf94
refactoring
Aug 26, 2025
c9415a5
extend e2e test to check `move_stake` method behavior with `move_all_…
Aug 26, 2025
d5d6a55
Merge pull request #3027 from opentensor/test/roman/keep-each-file-as…
basfroman Aug 26, 2025
35bddb4
Merge branch 'staging' into feat/roman/Move-All-Stake-option
Aug 26, 2025
0adcd7b
Merge pull request #3028 from opentensor/feat/roman/Move-All-Stake-op…
basfroman Aug 26, 2025
2c5e221
Merge branch 'staging' into fix/roman/fix-tests-related-with-commit-r…
Aug 26, 2025
486dd78
Merge pull request #3026 from opentensor/fix/roman/fix-tests-related-…
basfroman Aug 26, 2025
1d10850
improve deps and version
Aug 28, 2025
c47fa43
CHANGELOG.md
Aug 28, 2025
fea35b0
Merge pull request #3031 from opentensor/changelog/9.10.0
basfroman Aug 28, 2025
d9c6e16
`actions/checkout@v4` should take all commits history
Aug 28, 2025
42d593d
Checkout PR head instead of merge
Aug 28, 2025
cbdb352
Merge pull request #3032 from opentensor/release/9.10.0
basfroman Aug 28, 2025
b15a106
Merge pull request #3034 from opentensor/master
basfroman Aug 29, 2025
85eb48d
add lost data
Aug 29, 2025
59f86a9
Merge pull request #3035 from opentensor/fix/roman/fix-forced-data
basfroman Aug 29, 2025
6095490
Merge pull request #3036 from opentensor/master
basfroman Aug 29, 2025
1b7bf01
fix broken link
Galoretka Aug 31, 2025
d3d1b4d
Fix broken links in CONTRIBUTING.md
Gimzou Sep 1, 2025
a33ff4e
add missing argument
Sep 3, 2025
471a359
make it easy
Sep 3, 2025
1bd8c2f
Merge pull request #3043 from opentensor/fix/roman/Async-Get_balances…
basfroman Sep 3, 2025
1e31304
bug with `if block` in case if `block=0`
Sep 3, 2025
c2e1614
Merge pull request #3044 from opentensor/fix/roman/balances
basfroman Sep 3, 2025
4d9d03c
Update contrib/CONTRIBUTING.md
Galoretka Sep 5, 2025
5220519
Merge pull request #3040 from Galoretka/galoreton
basfroman Sep 5, 2025
1041131
bumping version
Sep 5, 2025
d0b65f0
update CHANGELOG.md
Sep 5, 2025
ccb5021
Merge pull request #3048 from opentensor/changelog/9.10.1
basfroman Sep 5, 2025
955efa9
Merge pull request #3049 from opentensor/release/9.10.1
basfroman Sep 5, 2025
b90f04a
Merge remote-tracking branch 'upstream/staging' into feature/Gimzou/f…
Gimzou Sep 7, 2025
f429a28
add `async_sudo_set_admin_utils`
Sep 8, 2025
6768842
fix tests
Sep 8, 2025
a20d5a6
add `get_admin_freeze_window`
Sep 8, 2025
b9521fb
ruff
Sep 8, 2025
01b9d64
fix more test
Sep 8, 2025
c8711b2
Merge pull request #3041 from Gimzou/feature/Gimzou/fix-contributing-…
basfroman Sep 9, 2025
04fe4d9
Merge pull request #3052 from opentensor/fix/roman/fix-after-Rate-lim…
basfroman Sep 10, 2025
d19845c
add fields
Sep 10, 2025
2a2a93e
Merge pull request #3054 from opentensor/feat/roman/fix-subtensor-api
basfroman Sep 10, 2025
fbe4c38
reliability
Sep 10, 2025
a190989
update `MetagraphInfo` and `SelectiveMetagraphIndex`
Sep 10, 2025
9e33a10
add an error logging message
Sep 10, 2025
9f3ae29
update tests
Sep 10, 2025
3900a28
fix unit tests (add reg fee)
Sep 11, 2025
acdb099
test_incentive no flaky
Sep 11, 2025
15a7bce
remove print debug
Sep 11, 2025
5752085
add `_sub*` extrinsics
Sep 13, 2025
5fdc8e9
add sudo `_sub*` extrinsics
Sep 13, 2025
249afc1
add common `sudo_call_extrinsic`
Sep 13, 2025
1c888c8
add custom types for uids, weights, and salt
Sep 13, 2025
cb5c477
add sub methods to subtensors
Sep 13, 2025
a83c462
TODO deprecate in SDKv10
Sep 13, 2025
8328991
update MetagraphInfo
Sep 13, 2025
fdd7d10
improve `generate_weight_hash`
Sep 13, 2025
e8ca0ad
update tests
Sep 13, 2025
37933a4
update SubtensorApi
Sep 13, 2025
95c263f
update docstrings
Sep 13, 2025
2f84875
add unit tests
Sep 15, 2025
cf44906
improve `subtensor.weights` (use subuid)
Sep 15, 2025
e0fb27f
improve e2e test
Sep 15, 2025
53036c7
Merge pull request #3055 from opentensor/feat/roman/selective-metagra…
basfroman Sep 15, 2025
ee390e3
Merge branch 'staging' into feat/roman/sub-subnet
Sep 15, 2025
3883f7c
fix `sudo_call_extrinsic`
Sep 15, 2025
53df6e7
update `get_timelocked_weight_commits` method
Sep 15, 2025
3749555
update unit and e2e tests
Sep 15, 2025
4ac39bc
fix `generate_weight_hash` logic + tests
Sep 16, 2025
b3afc49
refactoring
Sep 16, 2025
cd69bb6
update e2e tests (use subuid)
Sep 16, 2025
07fee6b
add unit test for new extrinsics
Sep 16, 2025
94f5803
update make file
Sep 16, 2025
3bb28f4
update `sudo_set_sub_subnet_emission_split`
Sep 17, 2025
0b204ad
add `subtensor.get_sub_subnets_emission_split` + tests
Sep 17, 2025
18a054b
fix SubtensorApi tests
Sep 17, 2025
f4b80e6
add getting OwnerHyperparamRateLimit
Sep 17, 2025
4278a3d
Merge pull request #3059 from opentensor/fix/roman/add-wait-for-amoun…
basfroman Sep 17, 2025
734be41
Merge branch 'staging' into feat/roman/update-make-file
Sep 17, 2025
e149df9
Merge pull request #3058 from opentensor/feat/roman/update-make-file
basfroman Sep 17, 2025
f6c9b8c
Merge branch 'staging' into feat/roman/sub-subnet
Sep 17, 2025
3cfd493
rename `sub subnets` to `mechanism`
Sep 17, 2025
48f6872
tests improvement
Sep 17, 2025
72c9b33
deps: update munch to prevent deprecation warning
Arthurdw Sep 19, 2025
46ccf64
fix runtime call method + tests
Sep 19, 2025
64bf952
dead: removed uv lock
Arthurdw Sep 19, 2025
7687442
Improve MetagraphInfo calls
Sep 19, 2025
1379841
improve Metagraph
Sep 19, 2025
2c9ff5e
update SubtensorApi
Sep 19, 2025
6d67b58
check query better
Sep 19, 2025
6b42893
tests
Sep 19, 2025
bf2efa6
TODO
Sep 19, 2025
faeb926
They change error back to SubnetNotExists
Sep 19, 2025
89b4c8f
bring back old error on docstrings
Sep 19, 2025
707332e
fix typo
Sep 19, 2025
623384c
add `set_auto_stake_extrinsic`
Sep 22, 2025
41cc20b
update subtensors
Sep 22, 2025
dc61d95
update SubtensorApi
Sep 22, 2025
f74cf31
tests
Sep 22, 2025
044723f
Update bittensor/core/async_subtensor.py
basfroman Sep 22, 2025
35caea0
Update bittensor/core/async_subtensor.py
basfroman Sep 22, 2025
1c0ffd3
review changes + ruff
Sep 22, 2025
96c75e1
Merge pull request #3056 from opentensor/feat/roman/sub-subnet
basfroman Sep 22, 2025
9fd0b6c
Merge branch 'staging' into feat/roman/autostaking
Sep 22, 2025
7285a6c
update `get_subnet_price`
Sep 23, 2025
84be035
tests
Sep 23, 2025
2d747de
ruff
Sep 23, 2025
209b271
Merge pull request #3063 from opentensor/feat/roman/get_subnet_price
basfroman Sep 23, 2025
9358ef1
merge: branch 'staging' into update-munch-dep
Arthurdw Sep 23, 2025
7871408
Merge pull request #3061 from Arthurdw/update-munch-dep
basfroman Sep 23, 2025
936dad4
Add initial info for the script
thewhaleking Sep 23, 2025
2e3ccb9
More thoughts.
thewhaleking Sep 23, 2025
fa1590f
Bump asi req
thewhaleking Sep 24, 2025
8b5ee1a
WIP
thewhaleking Sep 24, 2025
ea456e8
Working well
thewhaleking Sep 24, 2025
b9dff9f
Updated test with new data
thewhaleking Sep 24, 2025
8dcbb1d
Handle "jsonrpc" replacement
thewhaleking Sep 24, 2025
664d687
Updated metadata and metadatav15 to latest.
thewhaleking Sep 24, 2025
c34cc2c
test_get_all_subnets_info data + test
thewhaleking Sep 25, 2025
f6b5ac2
get_netuids_for_hotkey
thewhaleking Sep 25, 2025
690d34f
get_current_block
thewhaleking Sep 25, 2025
e289c0b
Remove logs before writing to them and parsing what is written
thewhaleking Sep 25, 2025
941e9fd
More tests + script improvement
thewhaleking Sep 25, 2025
fdc7af5
More tests
thewhaleking Sep 25, 2025
1e1a4b9
More tests
thewhaleking Sep 25, 2025
4ae0e69
bumping version + CHANGELOG.md
Sep 25, 2025
ccea208
More tests
thewhaleking Sep 25, 2025
ab9170a
Final test updated
thewhaleking Sep 25, 2025
6d7f5a3
Merge pull request #3068 from opentensor/release/9.11.0
basfroman Sep 25, 2025
2e7988d
Merge pull request #3069 from opentensor/release/9.11.0
basfroman Sep 25, 2025
f3e2f64
fix + tests
Sep 26, 2025
33dae1d
Merge pull request #3070 from opentensor/feat/roman/fix-bug-in-mechs-…
basfroman Sep 26, 2025
f5d6e02
## What's Changed
Sep 26, 2025
a3d23c2
Merge pull request #3071 from opentensor/changelog/9.11.1
basfroman Sep 26, 2025
01b09ec
changelog
Sep 26, 2025
de964b4
Merge pull request #3072 from opentensor/release/9.11.1
basfroman Sep 26, 2025
5540aa6
Trying something
thewhaleking Sep 26, 2025
9cd8e41
In the arena
thewhaleking Sep 26, 2025
c9117fd
In the arena
thewhaleking Sep 26, 2025
55deddc
In the arena
thewhaleking Sep 26, 2025
24715b6
In the arena
thewhaleking Sep 26, 2025
8562239
Merge branch 'staging' into feat/thewhaleking/websocket-script
thewhaleking Sep 26, 2025
264262d
Brilliant me
thewhaleking Sep 26, 2025
7f1da8e
TODONE
thewhaleking Sep 26, 2025
2b77bb3
Cleanup
thewhaleking Sep 26, 2025
716f202
Added comments
thewhaleking Sep 26, 2025
520108b
Merge pull request #3067 from opentensor/feat/thewhaleking/websocket-…
basfroman Sep 29, 2025
20e2dc5
Merge branch 'staging' into feat/roman/autostaking
basfroman Oct 1, 2025
d21e07e
improve tests regardless last logic changes
basfroman Oct 1, 2025
130b619
docstrings
basfroman Oct 1, 2025
425b64e
Merge pull request #3062 from opentensor/feat/roman/autostaking
basfroman Oct 1, 2025
b5e8958
Merge pull request #3081 from opentensor/master
basfroman Oct 5, 2025
c921cc7
Updat get_neuron_for_pubkey_and_subnet to remove block
yuma-doc Oct 6, 2025
b65bc43
Merge pull request #3084 from yuma-doc/patch-1
basfroman Oct 7, 2025
1248a72
Adds comment for the future
thewhaleking Oct 7, 2025
60d7451
Improves the `determine_block_hash` method
thewhaleking Oct 7, 2025
9cce675
Adds unit test
thewhaleking Oct 7, 2025
a6d8d5a
PR suggestions
thewhaleking Oct 7, 2025
365f291
typo
thewhaleking Oct 7, 2025
4182d96
Merge pull request #3087 from opentensor/chore/thewhaleking/dev-comment
basfroman Oct 7, 2025
d950213
bump version and update CHANGELOG.md
basfroman Oct 8, 2025
3c1efb8
Merge pull request #3088 from opentensor/changelog/9.12.0
basfroman Oct 8, 2025
6411041
Merge pull request #3089 from opentensor/release/9.12.0
basfroman Oct 8, 2025
d65ad92
Update type hint/docstring for ws_shutdown_timer
thewhaleking Oct 8, 2025
4d56e45
replace error
basfroman Oct 10, 2025
7e0deb8
Merge pull request #3092 from opentensor/fix/roman/error
basfroman Oct 10, 2025
d201019
Update bittensor/core/async_subtensor.py
basfroman Oct 10, 2025
5f5eaa2
Merge pull request #3090 from opentensor/chore/thewhaleking/update-ty…
basfroman Oct 10, 2025
c495cfe
commenting on the test until the new governance come
basfroman Oct 15, 2025
efbb483
Merge pull request #3101 from opentensor/fix/roman/sub-governance-dea…
basfroman Oct 16, 2025
43be0fb
bumping scalecodec to 1.2.12
basfroman Oct 20, 2025
4ab92e2
Merge pull request #3104 from opentensor/fix/roman/scalecodec
basfroman Oct 20, 2025
f9f7350
bumping version + changelog
basfroman Oct 20, 2025
f8dd7f8
Merge pull request #3105 from opentensor/changelog/9.12.1
basfroman Oct 20, 2025
c0dd7d3
Merge pull request #3106 from opentensor/release/v9.12.1
basfroman Oct 20, 2025
a67b3b7
Release/9.12.2 (#3126)
thewhaleking Oct 30, 2025
e6e3253
improve workflow
basfroman Dec 4, 2025
fa3b069
Set Docker image tag based on label or branch
basfroman Dec 4, 2025
2997ed9
-R
basfroman Dec 4, 2025
f001f95
main for master PR if not labels
basfroman Dec 4, 2025
950ad66
no needs for `pull-docker-image`
basfroman Dec 4, 2025
6264162
Merge pull request #3187 from opentensor/feat/roman/workflow-e2e-tests
basfroman Dec 4, 2025
316bca7
Async optimization fixes + profiling scripts
Dec 9, 2025
d75b2cf
Optimize async execution in axon.py
Dec 10, 2025
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
7 changes: 7 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[run]
omit =
./nuclei/*
./routers/*
./setup.py
./tests/*
./env/*
21 changes: 21 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
**/data/
**/*.log
**/*.png
**/*.pstats
**/*.ipynb
**/bittensor.egg-info/*
**/lib/*
**/build/*
**/dist/*
**/runs/*
**/env/*
**/venv/*
**/tmp/*
**/test_results/*
**/__pycache__/*
**/.circleci
**/.git
**/.github
**/.hypothesis
**/.vscode
**/.gitignore
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
max-line-length = 120
exclude = .git,__pycache__, __init__.py, docs/source/conf.py,old,build,dist,venv,.venv,.tox
select = E9,F63,F7,F82,F401
59 changes: 59 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Bug report
description: Create a report to help us improve
labels: [bug]
assignees: []

body:
- type: textarea
id: bug-description
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is.
validations:
required: true

- type: textarea
id: reproduce
attributes:
label: To Reproduce
description: Steps to reproduce the behavior.
placeholder: |
1. Go to '...'
2. Run command '...'
3. Scroll down to '....'
4. See error
validations:
required: true

- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
description: A clear and concise description of what you expected to happen.
validations:
required: true

- type: textarea
id: screenshots
attributes:
label: Screenshots
description: If applicable, add screenshots to help explain your problem.
validations:
required: false

- type: input
id: environment
attributes:
label: Environment
description: Please specify your OS and Distro, and Bittensor Version.
placeholder: "OS and Distro: [e.g. Linux Ubuntu, Linux Fedora, etc.], Bittensor Version [e.g. 22]"
validations:
required: true

- type: textarea
id: additional-context
attributes:
label: Additional context
description: Add any other context about the problem here.
validations:
required: false
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Feature request
description: Suggest an idea for this project
labels: [feature]
assignees: []

body:
- type: textarea
id: problem-description
attributes:
label: Is your feature request related to a problem? Please describe.
description: A clear and concise description of what the problem is.
placeholder: "Ex. I'm always frustrated when [...]"
validations:
required: true

- type: textarea
id: solution
attributes:
label: Describe the solution you'd like
description: A clear and concise description of what you want to happen.
validations:
required: true

- type: textarea
id: alternatives
attributes:
label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've considered.
validations:
required: false

- type: textarea
id: additional-context
attributes:
label: Additional context
description: Add any other context or screenshots about the feature request here.
validations:
required: false
63 changes: 63 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/bug_fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<!--

### Requirements for Contributing a Bug Fix

* Fill out the template below. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
* The pull request must only fix an existing bug. To contribute other changes, you must use a different template.
* The pull request must update the test suite to demonstrate the changed functionality.
* After you create the pull request, all status checks must be pass before a maintainer reviews your contribution.

-->

### Bug

<!-- Link to the issue describing the bug that you're fixing. -->

### Description of the Change

<!--

We must be able to understand the design of your change from this description.
If we can't get a good idea of what the code will be doing from the description here, the pull request may be closed at the maintainers' discretion.
Keep in mind that the maintainer reviewing this PR may not be familiar with or have worked with the code here recently, so please walk us through the concepts.

-->

### Alternate Designs

<!-- Explain what other alternates were considered and why the proposed version was selected -->

### Possible Drawbacks

<!-- What are the possible side-effects or negative impacts of the code change? -->

### Verification Process

<!--

What process did you follow to verify that the change has not introduced any regressions?
Describe the actions you performed (including buttons you clicked, text you typed, commands you ran, etc.), and describe the results you observed.

-->

### Release Notes

<!--

Please describe the changes in a single line that explains this improvement in
terms that a user can understand. This text will be used in release notes.

If this change is not user-facing or notable enough to be included in release notes
you may use the strings "Not applicable" or "N/A" here.

Examples:

- The GitHub package now allows you to add co-authors to commits.
- Fixed an issue where multiple cursors did not work in a file with a single line.
- Increased the performance of searching and replacing across a whole project.

-->


### Branch Acknowledgement
[ ] I am acknowledging that I am opening this branch against `staging`
58 changes: 58 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/feature_change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
### Requirements for Adding, Changing, or Removing a Feature

* Fill out the template below. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
* The pull request must contribute a change that has been endorsed by the maintainer team. See details in the template below.
* The pull request must update the test suite to exercise the updated functionality.
* After you create the pull request, all status checks must be pass before a maintainer reviews your contribution.

### Description of the Change

<!--

We must be able to understand the design of your change from this description. If we can't get a good idea of what the code will be doing from the description here, the pull request may be closed at the maintainers' discretion. Keep in mind that the maintainer reviewing this PR may not be familiar with or have worked with the code here recently, so please walk us through the concepts.

-->

### Alternate Designs

<!-- Explain what other alternates were considered and why the proposed version was selected -->

### Possible Drawbacks

<!-- What are the possible side-effects or negative impacts of the code change? -->

### Verification Process

<!--

What process did you follow to verify that your change has the desired effects?

- How did you verify that all new functionality works as expected?
- How did you verify that all changed functionality works as expected?
- How did you verify that the change has not introduced any regressions?

Describe the actions you performed (including buttons you clicked, text you typed, commands you ran, etc.), and describe the results you observed.

-->

### Release Notes

<!--

Please describe the changes in a single line that explains this improvement in
terms that a user can understand. This text will be used in release notes.

If this change is not user-facing or notable enough to be included in release notes
you may use the strings "Not applicable" or "N/A" here.

Examples:

- The GitHub package now allows you to add co-authors to commits.
- Fixed an issue where multiple cursors did not work in a file with a single line.
- Increased the performance of searching and replacing across a whole project.

-->


### Branch Acknowledgement
[ ] I am acknowledging that I am opening this branch against `staging`
59 changes: 59 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/performance_improvement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
### Requirements for Contributing a Performance Improvement

* Fill out the template below. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
* The pull request must only affect performance of existing functionality
* After you create the pull request, all status checks must be pass before a maintainer reviews your contribution.

### Description of the Change

<!--

We must be able to understand the design of your change from this description. If we can't get a good idea of what the code will be doing from the description here, the pull request may be closed at the maintainers' discretion. Keep in mind that the maintainer reviewing this PR may not be familiar with or have worked with the code here recently, so please walk us through the concepts.

-->

### Quantitative Performance Benefits

<!--

Describe the exact performance improvement observed (for example, reduced time to complete an operation, reduced memory use, etc.). Describe how you measured this change. Bonus points for including graphs that demonstrate the improvement or attached dumps from the built-in profiling tools.

-->

### Possible Drawbacks

<!-- What are the possible side-effects or negative impacts of the code change? -->

### Verification Process

<!--

What process did you follow to verify that the change has not introduced any regressions? Describe the actions you performed (including buttons you clicked, text you typed, commands you ran, etc.), and describe the results you observed.

-->

### Applicable Issues

<!-- Enter any applicable Issues here -->

### Release Notes

<!--

Please describe the changes in a single line that explains this improvement in
terms that a user can understand. This text will be used in release notes.

If this change is not user-facing or notable enough to be included in release notes
you may use the strings "Not applicable" or "N/A" here.

Examples:

- The GitHub package now allows you to add co-authors to commits.
- Fixed an issue where multiple cursors did not work in a file with a single line.
- Increased the performance of searching and replacing across a whole project.

-->


### Branch Acknowledgement
[ ] I am acknowledging that I am opening this branch against `staging`
7 changes: 7 additions & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
addReviewers: true

# A list of team slugs to add as assignees
reviewers:
- opentensor/cortex

numberOfReviewers: 0
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 0 # Only security updates will be opened as PRs
10 changes: 10 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Welcome!

Due to [GitHub limitations](https://github.com/orgs/community/discussions/4620),
please switch to **Preview** for links to render properly.

Please choose the right template for your pull request:

- 🐛 Are you fixing a bug? [Bug fix](?expand=1&template=bug_fix.md)
- 📈 Are you improving performance? [Performance improvement](?expand=1&template=performance_improvement.md)
- 💻 Are you changing functionality? [Feature change](?expand=1&template=feature_change.md)
24 changes: 24 additions & 0 deletions .github/workflows/changelog-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Changelog guard (for release of hotfix)

permissions:
contents: read

on:
pull_request:
branches:
- staging
- master

jobs:
changelog:
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
id: changed
- name: Ensure CHANGELOG.md updated
if: contains(steps.changed.outputs.all_changed_files, 'CHANGELOG.md') == false
uses: actions/github-script@v7
with:
script: core.setFailed('CHANGELOG.md must be updated.')
27 changes: 27 additions & 0 deletions .github/workflows/compatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Requirements compatibility for supported Python versions
permissions:
contents: read

on:
pull_request:
paths:
- "pyproject.toml"

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

strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

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

- run: |
python -m pip install --upgrade pip
python -m pip install ".[dev,cli]" --dry-run --no-deps
Loading