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
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
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
Amine Khaldi and GitHub
6c2c13a2d0
CHIA-1626 Move some modules to the utils virtual project ( #18692 )
...
Move some modules to the utils virtual project.
2024-10-18 10:40:49 -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
Kyle Altendorf and GitHub
3061cd83d7
remove some pylint ignores ( #18140 )
2024-06-18 14:24:30 -05:00
Arvid Norberg and GitHub
cc4e2d83a1
add feature to profile just the block validation ( #17168 )
...
add feature to profile just the block validation. This exposes what is actually going on while we validate blocks. Sometimes the block validation times are affected by other tasks that hog the CPU, blocking the main co-routine from being scheduled
2024-01-04 10:53:13 -08:00
Kyle Altendorf and GitHub
d82876d47d
hint chia.util and remove from exclusions ( #16521 )
2023-10-10 13:45:20 -05:00
Arvid Norberg and GitHub
44cdd921e4
windows fix of memory profiler ( #14987 )
...
when enabling memory profiler, use a directory name compatible with windows' filesystems
2023-04-05 12:57:17 -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
Arvid Norberg and GitHub
377f617d1d
in profile analysis, treat GetQueuedCompletionStatus() as idle state ( #14041 )
...
in profiler analysis, treate GetQueuedCompletionStatus() as idle state
2022-12-07 20:48:40 -06:00
dustinface and GitHub
d9c97e15e4
isort: Remove all chia.util exceptions and sort the related files ( #13939 )
2022-11-17 15:32:18 -06:00
dustinface and GitHub
d3e1698cc8
util: Some cleanups for the memory profiler ( #13809 )
...
* Make `CallInfo` and `Frame` a `dataclass` and move them to the top level
* Use `click` in `memory_profiler.py`
* Move `mem_profile_task` into `chia.util.profiler`
* Move `chia.util.memory_profiler.py` to `tools/analyze_memory_profile.py`
* Implement `Frame.add`
2022-11-09 14:17:43 -06: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
0efd323a12
fix built-in profiler to work for mac ( #11590 )
2022-05-23 16:10:52 -07:00
Arvid Norberg and GitHub
203232e429
add profiler to wallet process ( #6019 )
2021-05-26 11:01:17 -07:00
Arvid Norberg and GitHub
12751ce811
add simple profiler, enabled by enable_profiler config ( #4054 )
...
Analyze profilers with chia/utils/profiler.py
2021-05-12 10:46:38 -07:00