Files
chia-blockchain/chia/_tests/plotting/util.py
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

13 lines
286 B
Python

from __future__ import annotations
from pathlib import Path
from chia.simulator.block_tools import get_plot_dir
def get_test_plots(sub_dir: str = "") -> list[Path]:
path = get_plot_dir()
if sub_dir != "":
path /= sub_dir
return list(sorted(path.glob("*.plot")))