libcst (python+rust) is needed for shrinkray, which edd@ was asking about. hypothesmith is a TDEP of both shrinkray and libcst - with that added, most of libcst's tests pass. one test file fails because we don't have pyre-check yet (pyre-check needs at least 4 more deps, plus it depends on libcst itself, which exceeds the effort I want to put into this at the moment ;)
ok to import these two? $ pkg_info py3-libcst Information for inst:py3-libcst-1.6.0 Comment: concrete syntax tree with AST-like properties for Python Required by: py3-hypothesmith-0.3.3 Description: LibCST is a Concrete Syntax Tree (CST) parser and serializer library for Python. It parses Python 3.0 -> 3.13 source code as a CST tree that keeps all formatting details (comments, whitespaces, parentheses, etc). It's useful for building automated refactoring (codemod) applications and linters. Maintainer: The OpenBSD ports mailing-list <ports@openbsd.org> WWW: https://github.com/Instagram/LibCST $ pkg_info py3-hypothesmith Information for inst:py3-hypothesmith-0.3.3 Comment: hypothesis strategies for generating Python programs Description: This package provides two strategies for "Hypothesis" for generating Python source code. The generated code will always be syntatically valid, and is useful for testing parsers, linters, auto-formatters, and other tools that operate on source code. DO NOT EXECUTE CODE GENERATED BY THESE STRATEGIES. It could do literally anything that running Python code is able to do, including changing, deleting, or uploading important data. Arbitrary code can be useful, but "arbitrary code execution" can be very, very bad. Maintainer: The OpenBSD ports mailing-list <ports@openbsd.org> WWW: https://github.com/Zac-HD/hypothesmith
libcst,hypothesmith.tgz
Description: application/tar-gz