This project packages the astyle utility as a Python package.
pip install astyle
astyle --help
# or
python -m astyle --help
from astyle.__main__ import main
main("--help")
Or:
from astyle import astyle
astyle(" #include <Python.h>", "indent-classes")
.pre-commit-config.yaml
:
repos:
- repo: https://github.com/Freed-Wu/astyle-wheel
rev: 3.6.6
hooks:
- id: astyle