diffplug / diffplug/spotless

Add fast option to Black

Open
#2,041 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
5.6k
Forks
559
Avg merge
1d 13h
Merged PRs (30d)
34

Description

Black takes arguments. How do we pipe these in? For example, I'd like to send Black the `--fast` command-line arguments.

https://github.com/diffplug/spotless/blob/224f8f96df3ad42cac81064a0461e6d4ee91dcaf/plugin-maven/src/main/java/com/diffplug/spotless/maven/python/Black.java#L25-L31

We can add a property to run it fast:

```
--fast / --safe By default, Black performs an AST safety
check after formatting your code. The --fast
flag turns off this check and the --safe
flag explicitly enables it. [default:
--safe]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.