a code formatter indenting function and method definitions twice. Fork to accept directories.
Project description
double-indent
A code formatter to add double indentation to function and method definitions.
Installation
pip install double-indent
usage
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 for instructions
Sample .pre-commit-config.yaml
:
- repo: https://github.com/theendlessriver13/double-indent
rev: 0.1.4
hooks:
- id: double-indent
indent function and method definitions twice
def func(
- arg,
- arg2,
+ arg,
+ arg2,
):
...
class C:
def __init__(
- self,
- arg,
+ self,
+ arg,
):
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for double_indent_rotki-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c96c5dd185864069dbe7ad3e3db4504c64de1e7ba0f82d33d090e01ea88da5f |
|
MD5 | 707c56f19ec968902e27341fee8ee2c1 |
|
BLAKE2b-256 | 7a1b6ee5967a87310f477a15580702fde575c36aceec78969ec34b50f533b054 |
Close
Hashes for double_indent_rotki-0.1.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abcf991c9ff91f13daf09427297e6ac13d2fae3d872506627fa21f2ecf6978e0 |
|
MD5 | 52605d642ff737a5d619f350a41e6a29 |
|
BLAKE2b-256 | db9e2a3a4ccc0a3fe57a269c842e90c62c57a3962e7e3249eecaab31d7d3d5f1 |