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 [-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
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_rotki-0.1.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65e4aa42b1cc54386c436eb24fbc2b26e3e10ada7fb0f7f974a9e90ba8572f76 |
|
MD5 | 4726d374c94778293bc02fa4f3b3306b |
|
BLAKE2b-256 | 207d452dca891af29a1d48f7e0c037f109059acdbb046a16ecb1965cfbceefb3 |
Close
Hashes for double_indent_rotki-0.1.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3992bd36d11ece677a61efcf3106890678e1956777d798ce99ef56a9cd57d8a |
|
MD5 | f03fad43297212908b37a78df35aadb7 |
|
BLAKE2b-256 | d52bb7b05e8431f81cdff3088221dea7cecf0cce1cc277c38089df0ff63c0d87 |