Matt Hauff and GitHub
40db4635a8
[LABS-245] Enable PEP604 Ruff rules ( #20269 )
...
* Enable PEP604 Ruff rules
* Fix harcoded signature in test
* Hack CLVMStreamable test with note to fast follow
2025-11-18 12:34:00 -08:00
Arvid Norberg and GitHub
b1c9beed3f
improve v2-plot support in plot-sync ( #20238 )
2025-11-18 10:05:50 -08:00
Arvid Norberg and GitHub
5664516dda
Bump chia rs 0.34.0 ( #20226 )
...
bump chia_rs to 0.34.0
2025-11-10 17:02:10 -07:00
rocksload and GitHub
8c50242410
chore: fix some typos in comments ( #20197 )
...
Signed-off-by: rocksload <rocksload@outlook.com >
2025-11-03 09:17:42 -07:00
Arvid Norberg and GitHub
18fd65d13b
pass along plot format version from ProverProtocol into ProofOfSpace ( #19930 )
...
pass along plot format version from ProverProtocol into ProofOfSpace objects
2025-08-14 12:31:07 -07:00
Richard Kiss and GitHub
4e6038ba3b
Simplify dependencies wrt chia.server ( #19895 )
...
Remove some dependencies in `chia.server`.
2025-08-06 12:03:47 -07:00
Almog De Paz and GitHub
19a8329cbe
Plotmanager v2 ( #19832 )
...
* prover protocol and v2Prover
* format name
* format
* refactor filename
* tests/raise unimplemented
* add get_filename_str to mock
* rename methods
* rename
* refactor
* improve coverage
* test from bytes
2025-07-30 11:05:52 -07:00
Kyle Altendorf and GitHub
7a26610e8f
less pre-inting for ints ( #19853 )
2025-07-23 13:18:04 -07:00
Richard Kiss and GitHub
7cee2b2b61
ruff issues ( #19787 )
2025-07-14 08:52:42 -05:00
6050235bdb
[CHIA-3043] Add (hopefully) non-controversial ruff rules ( #19684 )
...
* Add (hopefully) non-controversial ruff rules
* mypy-exclusions.txt
* PIE
* Fix pre-commit?
* PYI
* RSE
* S + ignores
* Whitespace fix
* Re-add build-init-files.py
* Add comment about security ignores
* Update mypy-exclusions.txt
Co-authored-by: Kyle Altendorf <sda@fstab.net >
* Fix the executable status of build-init-files.py
* Set executable bit for tools/run_block.py and readd shebang
* Fix new errors
---------
Co-authored-by: Kyle Altendorf <sda@fstab.net >
2025-06-11 08:36:08 -07:00
Richard Kiss and GitHub
a803d18c3b
The chia.protocols module no longer depends upon chia.server. ( #19636 )
...
<!-- Merging Requirements:
- Please give your PR a title that is release-note friendly
- In order to be merged, you must add the most appropriate category
Label (Added, Changed, Fixed) to your PR
-->
<!-- Explain why this is an improvement (Does this add missing
functionality, improve performance, or reduce complexity?) -->
The modules `chia.protocols` and `chia.server` form a dependency loop.
This change at least removes the direct dependency of `chia.protocols`
on `chia.server`.
### Purpose:
<!-- Does this PR introduce a breaking change? -->
### Current Behavior:
### New Behavior:
<!-- As we aim for complete code coverage, please include details
regarding unit, and regression tests -->
### Testing Notes:
<!-- Attach any visual examples, or supporting evidence (attach any
.gif/video/console output below) -->
2025-05-29 09:24:29 -07:00
Kyle Altendorf and GitHub
a90f04ff48
move chia.types.aliases to chia.server.aliases ( #19535 )
...
* move `chia.types.aliases` to `chia.server.aliases`
* touchup
2025-04-25 13:15:04 -05:00
Kyle Altendorf and GitHub
d50b6e0883
use chia_rs directly for sized bytes ( #19326 )
2025-02-28 09:35:25 -08:00
Kyle Altendorf and GitHub
e446d6b726
use chia_rs directly for sized ints ( #19303 )
...
* use chia_rs directly for sized ints
* Update data_layer_rpc_api.py
2025-02-24 14:33:09 -08:00
6c90a76b56
Tighten up ruff ignore list ( #18837 )
...
* Tighten up ruff ignore list
* Okay that fix was indeed unsafe
* enable type-name-incorrect-variance
* enable literal-membership
* enable non-augmented-assignment
* enable useless-return
* enable global-variable-not-assigned
* -
* fixup
* Clean up roff.toml from annotations
* use ignore instead of explicit re-export
* use more descriptive names
---------
Co-authored-by: Kyle Altendorf <sda@fstab.net >
2024-11-12 12:19:31 -07:00
Matt Hauff and GitHub
2808ee2446
[CHIA-1681] Replace black with Ruff ( #18813 )
...
* Replace black with Ruff
* Change build_network_protocol_files.py
2024-11-04 15:22:18 -07:00
Matt Hauff and GitHub
73e4a5bbea
[CHIA-1680] Finish replacing flake8 with Ruff ( #18802 )
...
* Apply ruff unsafe fixes
* Manually fix tuples with `as`
* Remove all references to flake8
2024-11-04 08:59:57 -07:00
Arvid Norberg and GitHub
12a089f5f4
[CHIA-1638] Pace block requests ( #18729 )
...
* pace block requests to avoid the peer hitting its response rate limit. Prioritize fast peers over slow ones
* fix mypy warning
* simplify making WSChiaConnection usable as a dictionary key
* address review comments
2024-11-01 12:10:01 -07:00
Kyle Altendorf and GitHub
3b6f547d45
bytes zeros ( #18475 )
...
* `ZERO_32`
* `bytes(\d+)\(\[0\] \* \1\)`
* `bytes(\d+)\(b"\\(x00|0)" \* \1\)`
* `bytes(\d+)\(b"0" \* \1\)`
* Revert "`bytes(\d+)\(b"0" \* \1\)`"
This reverts commit 2d629dcb0a .
2024-10-22 12:07:07 -07:00
Kyle Altendorf and GitHub
9c8557a1f8
Remove Python 3.8 support and update source to 3.9 standards ( #18687 )
...
* manual python 3.8 removals
* poetry
* pyupgrade
* black
* isort
* manually tidy imports
* work around shadowed type
* catch up build network protocol files for pyupgrade changes
* placate pylint
* re-enable 20.04
* placate flake8
2024-10-16 14:21:15 -07:00
peicuiping and GitHub
2dbd5b3b67
chore: remove repetitive words ( #17996 )
2024-07-15 12:36:59 -07:00
Matt Hauff and GitHub
3637bd33c6
Delete chia.util.misc ( #18170 )
...
* Move VersionedBlob to chia.util.streamable
* Move format_bytes to chia.cmds.cmds_util
* Move format_minutes to chia.cmds.cmds_util
* Move prompt_yes_no to chia.cmds.cmds_util
* Move get_list_or_len to from chia.plot_sync.receiver
* Move validate_directory_writable to chia.cmds.cmds_util
* Move *termination_signals to test_services
* Move UInt*Range to chia.util.streamable
* Create chia.util.batches
* Create chia.server.signal_handlers
* Create chia._tests.util.split_managers
* Move ValuedEvent to chia.types.transaction_queue_entry
* Move available_logical_cores to chia.util.cpu
* Move caller_file_and_line to chia._tests.util.misc
* Move satisfies_hint to chia._tests.wallet.test_singleton_lifecycle_fast
2024-06-18 08:27:17 -05:00
Kyle Altendorf and GitHub
a89222a428
move tests ( #17209 )
...
* prep
* verify source and installed tests match
* move
* remove move script
2024-03-14 10:19:20 -07:00