3 ms·
A Python code abstract syntax tree (AST) parser and formatter in Go. Because the Python's "ast" modules is too slow, and lacks proper "format" feature (it has u
by ilius2 3y ago
A Python code abstract syntax tree (AST) parser and formatter in Go.
Because the Python's "ast" modules is too slow, and lacks proper "format" feature (it has unparse but it removes comments, and forgets the current style completely). I use "ruff" a lot (https://github.com/astral-sh/ruff https://github.com/astral-sh/ruff) which is in Rust. But I want to be able to implement fast custom linters in Go (linters that ruff / fixit lack, and Python linters lack or are too slow).