black
Verified for current stable LTS
Black Command: Format Code String
Use for format code string with Black. Exact CLI syntax to format code string using Black.
When to use this: Use for format code string with Black.
Command Syntax
black -c "<code>" black -c "<code>" Command Breakdown
-c- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to format code string using Black.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Black Command: Auto Format File Or Directory
black <path/to/file_or_directory> Black Command: Check Formatting Changes black --check <path/to/file_or_directory> Black Command: Quiet Auto Format black -q <path/to/file_or_directory> Black Command: Quiet Auto Formatting black -q <path/to/file_or_directory> Black Command: Show Diff Without Modifying black --diff <path/to/file_or_directory>