Earle Lowe and GitHub
05094c27c9
context manager for BlockTools ( #20326 )
...
* context manager for BlockTools
* Missed one usage and fixed up Self import
* Ignore cleanup errors in tempdir cleanup for BlockTools
* Remove debug prints
* Fixed up sync blocktools and use @contextmanager
* Address review comments
* Add return type
* Empty commit for github
* Strange github things
* adjust order of finding ports
2025-12-15 09:49:12 -08:00
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
Kyle Altendorf and GitHub
fcd20ce543
more chia_rs directly ( #19520 )
...
* more `chia_rs` directly
* maybe
* undo, kinda
2025-04-21 14:05:05 -05: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
0e703e48e0
(Mostly) Replace flake8 with Ruff ( #18801 )
...
* Get flake8 config partially ready
* Mostly remove flake8 config
* Delete arithmetic whitespace ignore
* Delete unused program strings from tests
* Remove unnecessary noqas
* A couple more flake8 warnings
2024-11-01 09:55:16 -07:00
Matt Hauff and GitHub
6084112d48
[CHIA-1553] Replace pylint with ruff ( #18759 )
...
* Replace pylint with ruff
* poetry
* remove pylint
* Address comments by @altendky
* Undo formatting
* actually undo formatting
2024-10-25 15:55:37 -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
Arvid Norberg and GitHub
ba9420b553
remove block_height_list from BlockGenerator ( #18302 )
...
* remove block_height_list from BlockGenerator. This field is only used when farming blocks, and we don't use it in production right now. We only use it in the tests, BlockTools. It has been updated with a cleaner and more direct way of setting the block reference list in new blocks
* test
2024-08-01 16:41:39 -07: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
Kyle Altendorf and GitHub
714c4d1985
move run_full_sync() to tests/ ( #17268 )
...
* move `run_full_sync()` to `tests/`
* update mypy exclusions
2024-01-10 09:32:04 -06:00
Arvid Norberg and GitHub
0c56e8f7af
Better timestamps on simulated chains ( #16326 )
2023-09-15 21:00:08 -05:00
Kyle Altendorf and GitHub
42a6d1afa6
remove support for Python 3.7 ( #14611 )
...
* remove support for Python 3.7
* python_requires=">=3.8, <4"
* 3.8.1+
* catchup
* remove todos handled in https://github.com/Chia-Network/chia-blockchain/pull/15755
2023-07-14 12:49:58 -05:00
Kyle Altendorf and GitHub
03943a0e51
allow tests/tools/test_full_sync.py::test_full_sync_test to run on 3.7 ( #15570 )
...
* allow tests/tools/test_full_sync.py::test_full_sync_test to run on 3.7
* drop dirs_exist_ok=
* more
* less
2023-06-21 18:14:34 -05:00
Kyle Altendorf and GitHub
2ed75d47f3
more mypy platforms in ci ( #12299 )
...
* more mypy platforms in ci
* check not checks
* oh yeah, activate...
* add 3.11
* adjust job names
* actually use the right python version for install
* adjust for 3.7 hinting support
* exclude macos 3.7 and macos arm 3.8
* back to 3.8 for now
* major_dot_minor
* oops
* move ignore comments for 3.7
* and more
2023-04-27 09:51:18 -05:00
Kyle Altendorf and GitHub
ff5ef6e073
remove leading newlines from indented code blocks ( #14653 )
...
* remove leading newlines from indented code blocks
* catch another one
2023-02-23 21:53:48 -06:00
Almog De Paz and GitHub
ac2203eda8
Refactor test utils for import availability outside of repo ( #13880 )
...
* refactor for import availability outside of repo
* refactor for import availability outside of repo
* small revert
* newline
* fix imports
* fix pre-commit issues
* types issort, adapt mypy ignore
* redundant imports
* move files from util to simulator
* run pre_commit
* remove setup_nodes/keyring from isort.cfg
* fix asyncio import
2022-11-15 18:51:05 -06:00
Kyle Altendorf and GitHub
3b084a165b
configure isort to add the future annotations import ( #13327 )
...
* configure isort to add the future annotations import
* apply the new isort setting
* remove type ignores for new mypy (#13539 )
https://pypi.org/project/mypy/0.981/
* another
2022-09-30 03:40:22 -05:00
Jack Nelson and GitHub
0bc54ae08b
Move simulator test requirements over to new module ( #12521 )
...
* create new test.simulator module
to allow other packages to use the simulator without it crashing.
also tiny QOL fixes
* change user mode sim plot filter
Now only plots matching the user set fingerprint are loaded, this decreases the chance of user error.
* fix small oops in configure
* oops
* fix lint
* isort, who dis
* move folder over to chia/simulator
also change mypy settings again
2022-07-25 14:07:38 -05:00
Kyle Altendorf and GitHub
90516263aa
remove chia.util.path.mkdir() ( #10842 )
...
* remove chia.util.path.mkdir()
* remove submodule change
* less tmpdir, more tmp_path
2022-06-08 10:24:40 -05:00
Arvid Norberg and GitHub
79034bb82e
improve generate_chain ( #11242 )
...
* improve generate_chain to have proper command line options. Make it include block references by default.
* fix shell linter
2022-04-27 11:43:33 -07:00
Arvid Norberg and GitHub
511c13e632
add tool to generate a blockchain with full blocks, as a benchmark ( #11146 )
2022-04-15 10:11:42 -07:00