pyastgrep and custom lintingPyastgrep allows searching for Python syntax using XPath.Pyastgrep can be used as a library or a command line tool for linting tasks and enforcing conventions.
Ruff - The Fastest Python Linter and Formatter Just Got Faster! - Mouse Vs PythonRuff released a hand-written recursive descent parser in version 0.4.0, offering significant speed improvements for linting and formatting.