https://github.com/astrobarker/black-indent
wrapper for the Black python formatter that lets me control the indent size
https://github.com/astrobarker/black-indent
linter python shell
Last synced: 3 months ago
JSON representation
wrapper for the Black python formatter that lets me control the indent size
- Host: GitHub
- URL: https://github.com/astrobarker/black-indent
- Owner: AstroBarker
- License: gpl-3.0
- Created: 2023-08-19T16:13:16.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-13T03:39:38.000Z (about 2 years ago)
- Last Synced: 2025-03-29T11:15:25.559Z (over 1 year ago)
- Topics: linter, python, shell
- Language: Shell
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# black-indent
```
__ __ __ _ __ __
/ /_ / /___ ______/ /__ (_)___ ____/ /__ ____ / /_
/ __ \/ / __ `/ ___/ //_/_____/ / __ \/ __ / _ \/ __ \/ __/
/ /_/ / / /_/ / /__/ ,< /_____/ / / / / /_/ / __/ / / / /_
/_.___/_/\__,_/\___/_/|_| /_/_/ /_/\__,_/\___/_/ /_/\__/
```


[](https://www.gnu.org/licenses/gpl-3.0)

Wrapper for the [Black](https://github.com/psf/black) python formatter that lets me control the indent size.
Because the developer should be in control.
Or just use [ruff](https://astral.sh/ruff).
## Installation
To install, clone this repo and run `make install`
```
git clone https://github.com/astrobarker/black-indent.git
make install
```
to install `black-indent` and its man page at the root level.
## Usage
run
```
black-indent filename 2
```
to set indentation to 2 spaces.
```
Usage:
black-indent [-hv] filename current_indent target_indent
Options:
-h, --help show this help text
-V, --version display version
filename file to be formatted
current_indent current indentation level (default=4)
target_indent desired indentation level (default=2)
```