a code formatter indenting function and mtehod definitions twice
Project description
double-indent
A code formatter to add double indentation to function and method definitions.
Installation
pip install double-indent
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
pre-commit hook
See pre-commit for instructions
Sample .pre-commit-config.yaml
:
- repo: https://github.com/theendlessriver13/double-indent
rev: 0.1.2
hooks:
- id: double-indent
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-0.1.3.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for double_indent-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8606484f512e1ec0c51443d97112e3457ef1401b2b76fcb7e57a6795f11ba4bd |
|
MD5 | 9dd032375c61c484f2a09a83e709bd11 |
|
BLAKE2b-256 | 187088eee880552bb30301f4be8a9a622d10c65b10ee61ad020891d4c5b6f06b |