double-indent-0.1.4
توضیحات
a code formatter indenting function and mtehod definitions twice
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | double-indent-0.1.4 |
| نام | double-indent |
| نسخه کتابخانه | 0.1.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jonas Kittner |
| ایمیل نویسنده | theendlessriver13@users.noreply.github.com |
| آدرس صفحه اصلی | https://github.com/theendlessriver13/double-indent |
| آدرس اینترنتی | https://pypi.org/project/double-indent/ |
| مجوز | MIT |
[](https://github.com/theendlessriver13/double-indent/actions?query=workflow%3Aci)
[](https://results.pre-commit.ci/latest/github/theendlessriver13/double-indent/master)
[](https://codecov.io/gh/theendlessriver13/double-indent)
# double-indent
A code formatter to add double indentation to function and method definitions.
## Installation
`pip install double-indent`
## usage
```console
usage: double-indent [-h] [-i INDENT] [filenames ...]
positional arguments:
filenames
optional arguments:
-h, --help show this help message and exit
-i INDENT, --indent INDENT
number of spaces for indentation
```
## pre-commit hook
See [pre-commit](https://pre-commit.com) for instructions
Sample `.pre-commit-config.yaml`:
```yaml
- repo: https://github.com/theendlessriver13/double-indent
rev: 0.1.4
hooks:
- id: double-indent
```
## indent function and method definitions twice
```diff
def func(
- arg,
- arg2,
+ arg,
+ arg2,
):
...
```
```diff
class C:
def __init__(
- self,
- arg,
+ self,
+ arg,
):
...
```
نیازمندی
| مقدار | نام |
|---|---|
| - | tokenize-rt |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl double-indent-0.1.4:
pip install double-indent-0.1.4.whl
نصب پکیج tar.gz double-indent-0.1.4:
pip install double-indent-0.1.4.tar.gz