| name | black |
| description | > “Any color you like.” WHEN: lint or format code, style terminal output. Triggers: use black, install black, how to use black, lint code. |
black
“Any color you like.”
When to Use
- Lint or format code
- Style terminal output
When NOT to Use
- Projects using JavaScript or TypeScript (different ecosystem)
Quick Start
Install
Black can be installed by running pip install black. It requires Python 3.10+ to
run. If you want to format Jupyter Notebooks, install with
pip install "black[jupyter]".
Basic Usage
black {source_file_or_directory}
python -m black {source_file_or_directory}
Docker
- Base image:
python:3.13-slim
- Entrypoint:
["/opt/venv/bin/black"]
Project Info
- Language: Python
- Tests: Yes
File Structure
├── action/
│ └── main.py
├── autoload/
│ └── black.vim
├── docs/
│ ├── _static/
│ ├── compatible_configs/
│ ├── contributing/
│ ├── guides/
│ ├── integrations/
│ ├── the_black_code_style/
│ ├── usage_and_configuration/
│ ├── authors.md
│ ├── change_log.md
│ ├── conf.py
│ ├── faq.md
│ ├── getting_started.md
│ ├── index.md
│ ├── license.md
│ ├── make.bat
Generated by repo2skill