astyle-3.6.9
توضیحات
Artistic Style is a source code indenter, formatter, and beautifier for the C, C++, C++/CLI, Objective‑C, C# and Java programming languages
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | astyle-3.6.9 |
| نام | astyle |
| نسخه کتابخانه | 3.6.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Wu Zhenyu <wuzhenyu@ustc.edu> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/astyle/ |
| مجوز | GPL v3 |
# Astyle Python Distribution
This project packages the [astyle](https://gitlab.com/saalen/astyle) utility as
a Python package.
## Install
```shell
pip install astyle
```
## Usage
### shell
```shell
astyle --help
# or
python -m astyle --help
```
### python
```python
from astyle.__main__ import main
main("--help")
```
Or:
```python
from astyle import astyle
astyle(" #include <Python.h>", "indent-classes")
```
### pre-commit
`.pre-commit-config.yaml`:
```yaml
repos:
- repo: https://github.com/Freed-Wu/astyle-wheel
rev: 3.6.9
hooks:
- id: astyle
```
نیازمندی
| مقدار | نام |
|---|---|
| xtr | pytest-cov; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl astyle-3.6.9:
pip install astyle-3.6.9.whl
نصب پکیج tar.gz astyle-3.6.9:
pip install astyle-3.6.9.tar.gz