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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d671e893e5b4e86b44eca2261cf8b0964233b615db9b05a60c2b847e8b94358 |
|
MD5 | 8c87109679d7a9837b544d23a0b75d45 |
|
BLAKE2b-256 | e2f623721ff5b7ac03a2c2681ae4d55fbdb62ff43e8adbe281ad9c3d4182de93 |
Close
Hashes for double_indent_shiku-0.1.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c542a0795784d8b00c301b94b95c2d6375ed444ec27b3bd1253d2913b3d0c22 |
|
MD5 | fbbebd2181b13fd0ee581b6fb67ee8b9 |
|
BLAKE2b-256 | e8469f08894669aa7103118a732d96e423de8caa9c417c471fa3876358947586 |