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
38d8598fc6
build(deps): bump click from 8.1.8 to 8.3.0 ( #20146 )
...
* build(deps): bump click from 8.1.8 to 8.3.0
Bumps [click](https://github.com/pallets/click ) from 8.1.8 to 8.3.0.
- [Release notes](https://github.com/pallets/click/releases )
- [Changelog](https://github.com/pallets/click/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/click/compare/8.1.8...8.3.0 )
---
updated-dependencies:
- dependency-name: click
dependency-version: 8.3.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Remove workaround for click.Choice and Enum
* place the default sortkey first to fix some click strangeness
* Ignore duplicate option warnings for specific test
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Earle Lowe <e.lowe@chia.net >
2025-10-23 10:05:27 -07:00
Kyle Altendorf and GitHub
8bba60158d
use now allowed randbytes and other helpers ( #19838 )
2025-07-21 08:55:55 -07:00
Kyle Altendorf and GitHub
1911044e97
use chia_rs directly for more types ( #19475 )
...
* use chia_rs directly for more types
* more more
* undo submodule change...
2025-04-18 11:45:44 -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
Matt Hauff and GitHub
604fc1feb0
[CHIA-1732] Add Ruff specific linting rules ( #18845 )
...
* Add Ruff specific linting rules
* Further tighten ignore list
* Address comments by @altendky
* One more comment @altendky
2024-11-14 15:58:12 -07: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
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
pengbanban and GitHub
3d916bd25d
chore: fix some comments ( #18485 )
...
Signed-off-by: pengbanban <pengbanban@aliyun.com >
2024-09-13 10:52:32 -05:00
Kyle Altendorf and GitHub
3061cd83d7
remove some pylint ignores ( #18140 )
2024-06-18 14:24:30 -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
Kyle Altendorf and GitHub
384c14615a
move benchmarks/util.py to tests/util/benchmarks.py ( #17251 )
2024-01-10 09:30:00 -06:00
Kyle Altendorf and GitHub
90c1441af0
apply pyupgrade --py38-plus --keep-runtime-typing ( #14646 )
2023-10-24 12:01:23 -05:00
Arvid Norberg and GitHub
efcbc0ea4a
fixup block store and coin store benchmarks ( #15946 )
2023-08-08 02:25:59 -05: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
dustinface and GitHub
a48fd43100
streamable: Simplify and force correct usage ( #10509 )
...
* streamable: Merge `strictdataclass` into `Streamable` class
* tests: Test not supported streamable types
* streamable: Reorder decorators
* streamable: Simplify streamable decorator and force correct usage/syntax
* streamable: Just move some stuff around in the file
* streamable: Improve syntax error messages
* mypy: Drop `type_checking.py` and `test_type_checking.py` from exclusion
* streamable: Use cached fields instead of `__annotations__`
This is now possible after merging `__post_init__` into `Streamable`
* Introduce `DefinitionError` as `StreamableError`
* `/t` -> ` `
2022-04-08 18:29:32 -07:00
dustinface and GitHub
0909fe7672
benchmarks: Implement streamable data comparison ( #10433 )
2022-03-04 09:51:39 -08:00
dustinface and GitHub
cdf48f7b29
benchmarks: Implement benchmarks for streamable ( #10388 )
...
* benchmarks: Implement benchmarks for streamable
* benchmarks: Collect iterations per time instead of time per iterations
* benchmarks: Add standard deviation to streamable benchs
* benchmarks: Add ns/iteration to streamable benchs
* benchmarks: Move object creation out or the runs loop
* benchmarks: Use `click.Choice` for `--data` and `--mode`
* benchmarks: Its µ
* benchmarks: Improve logging
* benchmarks: Drop unused code
* benchmarks: Use `process_time` as clock
* benchmarks: Add stdev `us/iterations %` + more precission
* benchmarks: Add `--live/--no-live` option to enable live results
2022-02-24 10:19:57 -08:00