a code formatter indenting function and method definitions twice. Fork to indent function calls
Project description
double-indent-shiku
A code formatter to add double indentation to function and method definitions,
also calls in if
and for
statements. Original repository:
https://github.com/theendlessriver13/double-indent/
Forked to met internal formatting requirements. Meant to be used after black.
Installation
pip install double-indent-shiku
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
indent function and method definitions twice
def func(
- arg,
- arg2,
+ arg,
+ arg2,
):
...
class C:
def __init__(
- self,
- arg,
+ self,
+ arg,
):
...
for value in values(
- arg,
- arg2,
+ arg,
+ arg2,
):
...
if values(
- arg,
- arg2,
+ arg,
+ arg2,
):
...
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_shiku-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c2234b1021db942401e8c5513c085966d8a453d92194e02f28bf711ca695010 |
|
MD5 | 59f4c2d34858b54ceb18205d8050c1a2 |
|
BLAKE2b-256 | ce09dd7b9e821ffaac806219bb6945c2b27a237ec2e1cfe72ac7e4cba5f042ca |
Close
Hashes for double_indent_shiku-0.1.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | baa89ab125eeaf0668956c11f0c0a572ab0f65dbf344b0ec6a428017d5714294 |
|
MD5 | dce037903869460587a657e7cf56a54e |
|
BLAKE2b-256 | 0e42e162a7d8c88dc0e66e4e958c605a18613db94fcc9f88522b38c63165e0ac |