Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

double_indent_shiku-0.1.5.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

double_indent_shiku-0.1.5-py2.py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page