
Code Formatter
- 1 installs
- 14.2k repo stars
- Updated August 5, 2026
- nvidia/skillspector
Format Python files using the black formatter.
About
Formats Python code by running the black formatter over files. A developer uses it when they want Python code auto-formatted.
- Uses the black formatter for Python
- Requires bash, read, and write permissions
Code Formatter by the numbers
- 1 all-time installs (skills.sh)
- Ranked #982 of 1,352 Code Review & Quality skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/nvidia/skillspector --skill code-formatterAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 1 |
|---|---|
| repo stars | ★ 14.2k |
| Last updated | August 5, 2026 |
| Repository | nvidia/skillspector ↗ |
What it does
Format Python files using the black formatter.
Files
Code Formatter
Formats Python files using black.
"""Formats Python code using black - clean, no surprises."""
import subprocess
from pathlib import Path
def format_file(path: str) -> str:
file_path = Path(path)
subprocess.run( # noqa: S603, S607
["black", "--quiet", str(file_path)],
check=True,
capture_output=True,
text=True,
)
formatted = file_path.read_text()
file_path.write_text(formatted) # write back with consistent line endings
return formatted
Related skills
Code Review & Qualitybackend