Skip to main content

a code formatter indenting function and method definitions twice. Fork to accept directories and more.

Project description

double-indent-rotki

A code formatter to add double indentation to function and method definitions. Original repository: https://github.com/theendlessriver13/double-indent/

We forked it to add additional functionality that the original author did not want to include upstream: https://github.com/theendlessriver13/double-indent/pull/19

Installation

pip install double-indent-rotki

usage

usage: double-indent-rotki [-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
  --dry-run             do not modify anything, just print if any file would have changes

indent function and method definitions twice

 def func(
-    arg,
-    arg2,
+        arg,
+        arg2,
 ):
     ...
 class C:
     def __init__(
-        self,
-        arg,
+            self,
+            arg,
     ):
         ...

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_rotki-0.1.6.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

double_indent_rotki-0.1.6-py2.py3-none-any.whl (4.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file double_indent_rotki-0.1.6.tar.gz.

File metadata

  • Download URL: double_indent_rotki-0.1.6.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.10

File hashes

Hashes for double_indent_rotki-0.1.6.tar.gz
Algorithm Hash digest
SHA256 92a1e0bdff05d7388442119e95d19e868c4081718fafac283503f3c560972526
MD5 e76156962c5d8e4e2cd21284f4692a92
BLAKE2b-256 d85a0c71663555e3bc237d35acacc3864c4c86f2b02f652a4d4d26c02a83157e

See more details on using hashes here.

File details

Details for the file double_indent_rotki-0.1.6-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for double_indent_rotki-0.1.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c37991ab48e81972fb56e403b9b1c3a03fc1630ad7ffce479a1acaf63ca621c6
MD5 018788a32edf2b941d04c64da34b5f3f
BLAKE2b-256 eda7402a197ad2bb714711dbd52aa1e49a88c929b88bb77a87bb6d9cd470a6be

See more details on using hashes here.

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