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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file double_indent_shiku-0.1.6.tar.gz.
File metadata
- Download URL: double_indent_shiku-0.1.6.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d671e893e5b4e86b44eca2261cf8b0964233b615db9b05a60c2b847e8b94358
|
|
| MD5 |
8c87109679d7a9837b544d23a0b75d45
|
|
| BLAKE2b-256 |
e2f623721ff5b7ac03a2c2681ae4d55fbdb62ff43e8adbe281ad9c3d4182de93
|
File details
Details for the file double_indent_shiku-0.1.6-py2.py3-none-any.whl.
File metadata
- Download URL: double_indent_shiku-0.1.6-py2.py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c542a0795784d8b00c301b94b95c2d6375ed444ec27b3bd1253d2913b3d0c22
|
|
| MD5 |
fbbebd2181b13fd0ee581b6fb67ee8b9
|
|
| BLAKE2b-256 |
e8469f08894669aa7103118a732d96e423de8caa9c417c471fa3876358947586
|